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

Function av_refstruct_replace

libavutil/refstruct.c:160–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void av_refstruct_replace(void *dstp, const void *src)
161{
162 const void *dst;
163 memcpy(&dst, dstp, sizeof(dst));
164
165 if (src == dst)
166 return;
167 av_refstruct_unref(dstp);
168 if (src) {
169 dst = av_refstruct_ref_c(src);
170 memcpy(dstp, &dst, sizeof(dst));
171 }
172}
173
174int av_refstruct_exclusive(const void *obj)
175{

Callers 15

frame_copy_propsFunction · 0.85
ff_thread_sync_refFunction · 0.85
cbs_h266_replace_spsFunction · 0.85
cbs_h266_replace_phFunction · 0.85
ff_thread_replace_frameFunction · 0.85
ff_dovi_ctx_replaceFunction · 0.85
cbs_av1_read_unitFunction · 0.85
h264_init_psFunction · 0.85
vp8_replace_frameFunction · 0.85
ff_mpv_replace_pictureFunction · 0.85

Calls 2

av_refstruct_unrefFunction · 0.85
av_refstruct_ref_cFunction · 0.85

Tested by

no test coverage detected