Browse Source

Do not reject odd width/height.

Fixes issue371.

Originally committed as revision 13377 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
16e30b7a04
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/mpeg12.c

+ 1
- 2
libavcodec/mpeg12.c View File

@@ -1966,8 +1966,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,

width = get_bits(&s->gb, 12);
height = get_bits(&s->gb, 12);
if (width <= 0 || height <= 0 ||
(width % 2) != 0 || (height % 2) != 0)
if (width <= 0 || height <= 0)
return -1;
s->aspect_ratio_info= get_bits(&s->gb, 4);
if (s->aspect_ratio_info == 0) {


Loading…
Cancel
Save