[FFmpeg-cvslog] avcodec/mpeg12dec: Limit progressive_seq reinitilaization to where the resolution changes
Michael Niedermayer
git at videolan.org
Sat Jun 28 00:35:56 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 28 00:16:09 2014 +0200| [4d1fa38d984cba322284cfce416c4c969da58f51] | committer: Michael Niedermayer
avcodec/mpeg12dec: Limit progressive_seq reinitilaization to where the resolution changes
Fixes Ticket3743
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d1fa38d984cba322284cfce416c4c969da58f51
---
libavcodec/mpeg12dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 92193ce..79fc502 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1263,7 +1263,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 && (s->height&31)) ||
+ (s1->save_progressive_seq != s->progressive_sequence && FFALIGN(s->height, 16) != FFALIGN(s->height, 32)) ||
0) {
if (s1->mpeg_enc_ctx_allocated) {
ParseContext pc = s->parse_context;
More information about the ffmpeg-cvslog
mailing list