[FFmpeg-cvslog] avcodec/mjpegdec: request a AMV sample with non mod 16 height

Michael Niedermayer git at videolan.org
Sun Jun 1 04:31:07 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun  1 03:53:19 2014 +0200| [149be913741fcefece3be448f9268217479c6906] | committer: Michael Niedermayer

avcodec/mjpegdec: request a AMV sample with non mod 16 height

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

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

 libavcodec/mjpegdec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index ccbdf48..6636dad 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -264,6 +264,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
     height = get_bits(&s->gb, 16);
     width  = get_bits(&s->gb, 16);
 
+    if (s->avctx->codec_id == AV_CODEC_ID_AMV && (height&15))
+        avpriv_request_sample(s->avctx, "non mod 16 height AMV\n");
+
     // HACK for odd_height.mov
     if (s->interlaced && s->width == width && s->height == height + 1)
         height= s->height;



More information about the ffmpeg-cvslog mailing list