mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-01 08:54:48 +02:00
avcodec/dnxhdenc: do not free nonexistent slice threads data when frame threading is used
Forgotten in 28e9ba951d
.
Fixes #7241.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
04b570817b
commit
0d35413e5d
@ -1369,8 +1369,10 @@ static av_cold int dnxhd_encode_end(AVCodecContext *avctx)
|
|||||||
av_freep(&ctx->qmatrix_c16);
|
av_freep(&ctx->qmatrix_c16);
|
||||||
av_freep(&ctx->qmatrix_l16);
|
av_freep(&ctx->qmatrix_l16);
|
||||||
|
|
||||||
|
if (avctx->active_thread_type == FF_THREAD_SLICE) {
|
||||||
for (i = 1; i < avctx->thread_count; i++)
|
for (i = 1; i < avctx->thread_count; i++)
|
||||||
av_freep(&ctx->thread[i]);
|
av_freep(&ctx->thread[i]);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user