[FFmpeg-cvslog] mpeg2: 12LSB w/ h of 0 is not allowed in compliant videos thus this also needs AV_EF_COMPLIANT

Michael Niedermayer git at videolan.org
Mon Mar 18 18:01:25 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 18 17:48:52 2013 +0100| [0163ad66e124a3ba1984a9e99a9fcdb624a52730] | committer: Michael Niedermayer

mpeg2: 12LSB w/h of 0 is not allowed in compliant videos thus this also needs AV_EF_COMPLIANT

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

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

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

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 3f5548d..ebabd73 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2029,7 +2029,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
     if (width == 0 || height == 0) {
         av_log(avctx, AV_LOG_WARNING, "Invalid horizontal or vertical size "
                "value.\n");
-        if (avctx->err_recognition & AV_EF_BITSTREAM)
+        if (avctx->err_recognition & (AV_EF_BITSTREAM | AV_EF_COMPLIANT))
             return AVERROR_INVALIDDATA;
     }
     s->aspect_ratio_info = get_bits(&s->gb, 4);



More information about the ffmpeg-cvslog mailing list