Anton Khirnov <[email protected]> writes: > From: Michael Niedermayer <[email protected]> > > Signed-off-by: Anton Khirnov <[email protected]> > --- > libavformat/mpegvideodec.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c > index ef2a7a0..4f21885 100644 > --- a/libavformat/mpegvideodec.c > +++ b/libavformat/mpegvideodec.c > @@ -50,8 +50,10 @@ static int mpegvideo_probe(AVProbeData *p) > else if((code & 0x1e0) == AUDIO_ID) apes++; > } > } > - if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !apes) > - return (pic>1 && !vpes) ? AVPROBE_SCORE_MAX/2+1 : > AVPROBE_SCORE_MAX/4; // +1 for .mpg > + if (seq && seq*9 <= pic*10 && pic*9 <= slice*10 && !pspack && !apes) { > + if (vpes) return AVPROBE_SCORE_MAX/8; > + else return pic > 1 ? AVPROBE_SCORE_MAX/2 + 1 : > AVPROBE_SCORE_MAX/4; // +1 for .mpg > + } > return 0; > }
What is this really meant to "fix"? -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
