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

Function replace_side_data_from_buf

libavutil/side_data.c:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static AVFrameSideData *replace_side_data_from_buf(AVFrameSideData *dst,
185 AVBufferRef *buf, int flags)
186{
187 if (!(flags & AV_FRAME_SIDE_DATA_FLAG_REPLACE))
188 return NULL;
189
190 av_dict_free(&dst->metadata);
191 av_buffer_unref(&dst->buf);
192 dst->buf = buf;
193 dst->data = buf->data;
194 dst->size = buf->size;
195 return dst;
196}
197
198AVFrameSideData *av_frame_side_data_new(AVFrameSideData ***sd, int *nb_sd,
199 enum AVFrameSideDataType type,

Callers 2

av_frame_side_data_newFunction · 0.85
av_frame_side_data_addFunction · 0.85

Calls 2

av_dict_freeFunction · 0.85
av_buffer_unrefFunction · 0.85

Tested by

no test coverage detected