[FFmpeg-devel] [PATCH] avformat/genh: Fix tools/probetest failure

Michael Niedermayer michael at niedermayer.cc
Wed Nov 18 14:47:24 CET 2015


On Tue, Nov 17, 2015 at 07:04:05PM +0100, Paul B Mahol wrote:
> On 11/17/15, Michael Niedermayer <michaelni at gmx.at> wrote:
> > From: Michael Niedermayer <michael at niedermayer.cc>
> >
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavformat/genh.c |    2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/libavformat/genh.c b/libavformat/genh.c
> > index 260e320..d8723d5 100644
> > --- a/libavformat/genh.c
> > +++ b/libavformat/genh.c
> > @@ -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;
> >  }
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> 
> ok

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151118/52025c3b/attachment.sig>


More information about the ffmpeg-devel mailing list