[FFmpeg-cvslog] avcodec/h264_picture: use ff_thread_replace_frame()
James Almer
git at videolan.org
Thu May 18 17:00:23 EEST 2023
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Aug 3 12:43:11 2022 -0300| [4f9799bd88afe1c04e79af8e031b3f0198a2a344] | committer: James Almer
avcodec/h264_picture: use ff_thread_replace_frame()
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f9799bd88afe1c04e79af8e031b3f0198a2a344
---
libavcodec/h264_picture.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/h264_picture.c b/libavcodec/h264_picture.c
index 2661ff4698..dcaf0fdb0a 100644
--- a/libavcodec/h264_picture.c
+++ b/libavcodec/h264_picture.c
@@ -154,8 +154,7 @@ int ff_h264_replace_picture(H264Context *h, H264Picture *dst, const H264Picture
av_assert0(src->tf.f == src->f);
dst->tf.f = dst->f;
- ff_thread_release_ext_buffer(h->avctx, &dst->tf);
- ret = ff_thread_ref_frame(&dst->tf, &src->tf);
+ ret = ff_thread_replace_frame(h->avctx, &dst->tf, &src->tf);
if (ret < 0)
goto fail;
More information about the ffmpeg-cvslog
mailing list