mjpegenc: fix restart interval parameters for yuv444

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-12-18 01:11:02 +01:00
parent 28b85b1fff
commit 41bebda485

View File

@ -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 */