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

Function av_packet_alloc

libavcodec/packet.c:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63AVPacket *av_packet_alloc(void)
64{
65 AVPacket *pkt = av_malloc(sizeof(AVPacket));
66 if (!pkt)
67 return pkt;
68
69 get_packet_defaults(pkt);
70
71 return pkt;
72}
73
74void av_packet_free(AVPacket **pkt)
75{

Callers 15

ff_alsa_openFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
mainFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
mainFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
ds_openFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
avformat_alloc_contextFunction · 0.85
avformat_new_streamFunction · 0.85
gif_write_packetFunction · 0.85
apng_write_packetFunction · 0.85

Calls 2

get_packet_defaultsFunction · 0.85
av_mallocFunction · 0.50

Tested by 10

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
video_decodeFunction · 0.68
seek_testFunction · 0.68
dump_stream_metaFunction · 0.68
run_testFunction · 0.68
video_decode_exampleFunction · 0.68