Skip to content

Commit

Permalink
avformat/genh: Fix tools/probetest failure
Browse files Browse the repository at this point in the history
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
  • Loading branch information
michaelni committed Nov 18, 2015
1 parent 0be48dd commit 3a4d828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavformat/genh.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3a4d828

Please sign in to comment.