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

Function av_packet_new_side_data

libavcodec/packet.c:231–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231uint8_t *av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
232 size_t size)
233{
234 int ret;
235 uint8_t *data;
236
237 if (size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE)
238 return NULL;
239 data = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE);
240 if (!data)
241 return NULL;
242
243 ret = av_packet_add_side_data(pkt, type, data, size);
244 if (ret < 0) {
245 av_freep(&data);
246 return NULL;
247 }
248
249 return data;
250}
251
252uint8_t *av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type,
253 size_t *size)

Callers 15

parse_608subsFunction · 0.85
matroska_deliver_packetFunction · 0.85
matroska_parse_webvttFunction · 0.85
matroska_parse_frameFunction · 0.85
mov_change_extradataFunction · 0.85
mov_read_packetFunction · 0.85
audio_frame_obuFunction · 0.85
parse_packetFunction · 0.85
read_frame_internalFunction · 0.85
add_eventFunction · 0.85

Calls 3

av_packet_add_side_dataFunction · 0.85
av_freepFunction · 0.85
av_malloczFunction · 0.50

Tested by

no test coverage detected