[FFmpeg-cvslog] r12434 - trunk/libavcodec/mpeg12.c
bcoudurier
subversion
Thu Mar 13 19:26:53 CET 2008
Author: bcoudurier
Date: Thu Mar 13 19:26:53 2008
New Revision: 12434
Log:
do not fail badly if aspect ratio is 0/forbidden, fix issue 369
Modified:
trunk/libavcodec/mpeg12.c
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c (original)
+++ trunk/libavcodec/mpeg12.c Thu Mar 13 19:26:53 2008
@@ -1970,8 +1970,6 @@ static int mpeg1_decode_sequence(AVCodec
(width % 2) != 0 || (height % 2) != 0)
return -1;
s->aspect_ratio_info= get_bits(&s->gb, 4);
- if (s->aspect_ratio_info == 0)
- return -1;
s->frame_rate_index = get_bits(&s->gb, 4);
if (s->frame_rate_index == 0 || s->frame_rate_index > 13)
return -1;
More information about the ffmpeg-cvslog
mailing list