[FFmpeg-cvslog] Set bits_per_raw_sample when decoding mjpeg / ljpeg.

Carl Eugen Hoyos git at videolan.org
Sun Jul 28 19:27:47 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jul 28 17:02:22 2013 +0200| [ae4dc0b37aa8aee5f7bca294d1da2a22ff3db68d] | committer: Carl Eugen Hoyos

Set bits_per_raw_sample when decoding mjpeg / ljpeg.

The ljpeg decoder also supports gray images with
8 - 15 bits per component.

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

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

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 37a5414..c92738f 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -221,6 +221,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
 
     /* XXX: verify len field validity */
     len     = get_bits(&s->gb, 16);
+    s->avctx->bits_per_raw_sample =
     s->bits = get_bits(&s->gb, 8);
 
     if (s->pegasus_rct)



More information about the ffmpeg-cvslog mailing list