mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-01 21:12:53 +08:00
avcodec/pthread: fix ffv1 with 2 threads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -651,9 +651,10 @@ int ff_thread_decode_frame(AVCodecContext *avctx,
|
|||||||
* If we're still receiving the initial packets, don't return a frame.
|
* If we're still receiving the initial packets, don't return a frame.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (fctx->delaying) {
|
if (fctx->next_decoding > (avctx->thread_count-1-(avctx->codec_id == AV_CODEC_ID_FFV1)))
|
||||||
if (fctx->next_decoding >= (avctx->thread_count-1-(avctx->codec_id == AV_CODEC_ID_FFV1))) fctx->delaying = 0;
|
fctx->delaying = 0;
|
||||||
|
|
||||||
|
if (fctx->delaying) {
|
||||||
*got_picture_ptr=0;
|
*got_picture_ptr=0;
|
||||||
if (avpkt->size)
|
if (avpkt->size)
|
||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
|
|||||||
Reference in New Issue
Block a user