[FFmpeg-devel] mjpegenc: wrong chrominance sampling values written to SOF header for YUVJ422P?
Andrey Utkin
andrey.krieger.utkin at gmail.com
Sat Dec 14 14:43:01 CET 2013
Not much related, but i'll just post it here.
Seems one more issue in mjpegenc.c
line 141:
if(avctx->active_thread_type & FF_THREAD_SLICE){
put_marker(p, DRI);
put_bits(p, 16, 4); // <===== Section size of 4 bytes is declared
put_bits(p, 16, (avctx->width-1)/(8*hsample[0]) + 1); //
<==== two bytes written
// <===== There should be two more bytes written, AFAIU 0xFFFF
hardcode may be used.
}
--
Andrey Utkin
More information about the ffmpeg-devel
mailing list