[FFmpeg-cvslog] mpeg12dec: assert no field frame mess

Michael Niedermayer git at videolan.org
Wed Oct 19 03:40:50 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 19 03:28:25 2011 +0200| [d6c21c7a6437a490568d9e049658190bc618b104] | committer: Michael Niedermayer

mpeg12dec: assert no field frame mess

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/mpeg12.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index ead7349..358ea43 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -961,6 +961,7 @@ static int mpeg_decode_mb(MpegEncContext *s, DCTELEM block[12][64])
                         }
                     }
                 } else {
+                    av_assert0(!s->progressive_sequence);
                     mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED;
                     for (i = 0; i < 2; i++) {
                         if (USES_LIST(mb_type, i)) {



More information about the ffmpeg-cvslog mailing list