diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-18 01:11:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-18 01:21:48 +0100 |
commit | 41bebda485773a69ce958542238317eb46268452 (patch) | |
tree | 9d89c7970c1f734e9e395789a44a7c8b1329dbc2 /libavcodec/mjpegenc.c | |
parent | 28b85b1fff428ad9ee68883ff0dd73090f36eed2 (diff) | |
download | ffmpeg-streaming-41bebda485773a69ce958542238317eb46268452.zip ffmpeg-streaming-41bebda485773a69ce958542238317eb46268452.tar.gz |
mjpegenc: fix restart interval parameters for yuv444
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpegenc.c')
-rw-r--r-- | libavcodec/mjpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index e817905..7ac3042 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -137,7 +137,7 @@ static void jpeg_table_header(MpegEncContext *s) if(s->avctx->active_thread_type & FF_THREAD_SLICE){ put_marker(p, DRI); put_bits(p, 16, 4); - put_bits(p, 16, s->mb_width*2/s->mjpeg_hsample[0]); + put_bits(p, 16, (s->width-1)/(8*s->mjpeg_hsample[0]) + 1); } /* huffman table */ |