diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-08 20:48:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-08 20:48:44 +0000 |
commit | 0127b86108c3e2c7b63c7996b10c62877030b706 (patch) | |
tree | ee68e4e73cf9b959aa93e35a14fe4dc20c537839 /libavcodec/mpeg12.c | |
parent | e90f5b5ab1fdb2a9cef3fb9a13bab8e38f361a88 (diff) | |
download | ffmpeg-streaming-0127b86108c3e2c7b63c7996b10c62877030b706.zip ffmpeg-streaming-0127b86108c3e2c7b63c7996b10c62877030b706.tar.gz |
Fix mb_height for interlaced mpeg2.
This correctly fixes issue961, thanks to steven warren for spotting my mistake.
Originally committed as revision 18381 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index f4e4958..573ae32 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1160,7 +1160,7 @@ typedef struct Mpeg1Context { int slice_count; int swap_uv;//indicate VCR2 int save_aspect_info; - int save_width, save_height; + int save_width, save_height, save_progressive_seq; AVRational frame_rate_ext; ///< MPEG-2 specific framerate modificator } Mpeg1Context; @@ -1238,6 +1238,7 @@ static int mpeg_decode_postinit(AVCodecContext *avctx){ s1->save_width != s->width || s1->save_height != s->height || s1->save_aspect_info != s->aspect_ratio_info|| + s1->save_progressive_seq != s->progressive_sequence || 0) { @@ -1256,6 +1257,7 @@ static int mpeg_decode_postinit(AVCodecContext *avctx){ s1->save_aspect_info = s->aspect_ratio_info; s1->save_width = s->width; s1->save_height = s->height; + s1->save_progressive_seq = s->progressive_sequence; /* low_delay may be forced, in this case we will have B-frames * that behave like P-frames. */ |