You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/h264_picture: use ff_thread_replace_frame()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -154,8 +154,7 @@ int ff_h264_replace_picture(H264Context *h, H264Picture *dst, const H264Picture
|
|||||||
av_assert0(src->tf.f == src->f);
|
av_assert0(src->tf.f == src->f);
|
||||||
|
|
||||||
dst->tf.f = dst->f;
|
dst->tf.f = dst->f;
|
||||||
ff_thread_release_ext_buffer(h->avctx, &dst->tf);
|
ret = ff_thread_replace_frame(h->avctx, &dst->tf, &src->tf);
|
||||||
ret = ff_thread_ref_frame(&dst->tf, &src->tf);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user