If I use the H264 parser:
av_parser_parse2(parser, avCodecContext, &avpkt.data, &avpkt.size,
correctedBufferPtr, correctedFrameSize, AV_NOPTS_VALUE, AV_NOPTS_VALUE, 0);
and enabled multithreading:
avCodecContext->thread_count = 0;
avCodecContext->thread_type = FF_THREAD_SLICE | FF_THREAD_FRAME;
appear artifacts when decoding streams, and sometimes there are warnings:
Cannot use next picture in error concealment ... errors in P frame
If I use avCodecContext->flags2 |= CODEC_FLAG2_CHUNKS, all streams are
decoded without lags and errors, but it disable multithreading
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user