[FFmpeg-cvslog] libavformat/mpegvideodec: add {} to complex ifs
Michael Niedermayer
git at videolan.org
Sun Oct 21 18:08:56 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 21 17:36:22 2012 +0200| [b8a64d69a9275bb841acf8b3ee38ec622bd718c2] | committer: Michael Niedermayer
libavformat/mpegvideodec: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8a64d69a9275bb841acf8b3ee38ec622bd718c2
---
libavformat/mpegvideodec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c
index f9c4062..8568ece 100644
--- a/libavformat/mpegvideodec.c
+++ b/libavformat/mpegvideodec.c
@@ -52,9 +52,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 && !res)
+ if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !apes && !res) {
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;
}
More information about the ffmpeg-cvslog
mailing list