Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
63
AVPacket *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
74
void av_packet_free(AVPacket **pkt)
75
{
Callers
15
ff_alsa_open
Function · 0.85
LLVMFuzzerTestOneInput
Function · 0.85
main
Function · 0.85
LLVMFuzzerTestOneInput
Function · 0.85
main
Function · 0.85
LLVMFuzzerTestOneInput
Function · 0.85
ds_open
Function · 0.85
LLVMFuzzerTestOneInput
Function · 0.85
avformat_alloc_context
Function · 0.85
avformat_new_stream
Function · 0.85
gif_write_packet
Function · 0.85
apng_write_packet
Function · 0.85
Calls
2
get_packet_defaults
Function · 0.85
av_malloc
Function · 0.50
Tested by
10
main
Function · 0.68
initialize_fifo_tst_muxer_chain
Function · 0.68
main
Function · 0.68
main
Function · 0.68
main
Function · 0.68
video_decode
Function · 0.68
seek_test
Function · 0.68
dump_stream_meta
Function · 0.68
run_test
Function · 0.68
video_decode_example
Function · 0.68