Browse Source

avformat/genh: Fix tools/probetest failure

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
3a4d8281c6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/genh.c

+ 2
- 0
libavformat/genh.c View File

@@ -32,6 +32,8 @@ static int genh_probe(AVProbeData *p)
{
if (AV_RL32(p->buf) != MKTAG('G','E','N','H'))
return 0;
if (AV_RL32(p->buf+4) <= 0 || AV_RL32(p->buf+4) > 0xFFFF) // channels
return 0;

return AVPROBE_SCORE_MAX / 3 * 2;
}


Loading…
Cancel
Save