[FFmpeg-cvslog] mpeg12dec: avoid reinitialization on PS changes when possible.

Michael Niedermayer git at videolan.org
Sun Oct 6 19:06:18 CEST 2013


ffmpeg | branch: release/0.7 | Michael Niedermayer <michaelni at gmx.at> | Mon Jul  8 21:46:20 2013 +0200| [f8c4dbe45ee2d76340e5b1071d998f6fb15e1aca] | committer: Carl Eugen Hoyos

mpeg12dec: avoid reinitialization on PS changes when possible.

Fixes Ticket2574

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 970c8df73528659925819dec31c4c8c0887f0321)

Conflicts:
	libavcodec/mpeg12.c

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8c4dbe45ee2d76340e5b1071d998f6fb15e1aca
---

 libavcodec/mpeg12.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 6714067..0cf9aa1 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -1288,7 +1288,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 ||
+        (s1->save_progressive_seq != s->progressive_sequence && (s->height&31)) ||
         0)
     {
 



More information about the ffmpeg-cvslog mailing list