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

Function ff_frame_new_side_data_from_buf_ext

libavcodec/decode.c:2166–2183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2164}
2165
2166int ff_frame_new_side_data_from_buf_ext(const AVCodecContext *avctx,
2167 AVFrameSideData ***sd, int *nb_sd,
2168 enum AVFrameSideDataType type,
2169 AVBufferRef **buf)
2170{
2171 int ret = 0;
2172
2173 if (side_data_pref(avctx, sd, nb_sd, type))
2174 goto finish;
2175
2176 if (!av_frame_side_data_add(sd, nb_sd, type, buf, 0))
2177 ret = AVERROR(ENOMEM);
2178
2179finish:
2180 av_buffer_unref(buf);
2181
2182 return ret;
2183}
2184
2185int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
2186 AVFrame *frame, enum AVFrameSideDataType type,

Callers 3

h2645_sei_to_side_dataFunction · 0.85
hevc_sei_to_contextFunction · 0.85

Calls 3

side_data_prefFunction · 0.85
av_frame_side_data_addFunction · 0.85
av_buffer_unrefFunction · 0.85

Tested by

no test coverage detected