summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-13 18:26:53 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-13 18:26:53 +0000
commita2338352befdbc79404dddce6659efffc786b6e5 (patch)
treeb31beac50f1073243ce181873aa0131f313aa324
parent32573a74bf5ffb8cf340f93e32ef8a565c0db5a4 (diff)
do not fail badly if aspect ratio is 0/forbidden, fix issue 369
Originally committed as revision 12434 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 10e57b2e31..59ed278395 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -1970,8 +1970,6 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
(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;