MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_thread_replace_frame

Function ff_thread_replace_frame

libavcodec/utils.c:881–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881int ff_thread_replace_frame(ThreadFrame *dst, const ThreadFrame *src)
882{
883 int ret;
884
885 dst->owner[0] = src->owner[0];
886 dst->owner[1] = src->owner[1];
887
888 ret = av_frame_replace(dst->f, src->f);
889 if (ret < 0)
890 return ret;
891
892 av_refstruct_replace(&dst->progress, src->progress);
893
894 return 0;
895}
896
897#if !HAVE_THREADS
898

Callers 1

ff_h264_replace_pictureFunction · 0.85

Calls 2

av_frame_replaceFunction · 0.85
av_refstruct_replaceFunction · 0.85

Tested by

no test coverage detected