changeset 6492:9fc086c22693 libavcodec

do not fail badly if aspect ratio is 0/forbidden, fix issue 369
author bcoudurier
date Thu, 13 Mar 2008 18:26:53 +0000
parents c8c58c35feef
children bed080a7ccbd
files mpeg12.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Thu Mar 13 18:10:58 2008 +0000
+++ b/mpeg12.c	Thu Mar 13 18:26:53 2008 +0000
@@ -1970,8 +1970,6 @@
         (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;