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

Function init_packet

doc/examples/transcode_aac.c:254–261  ·  view source on GitHub ↗

* Initialize one data packet for reading or writing. * @param[out] packet Packet to be initialized * @return Error code (0 if successful) */

Source from the content-addressed store, hash-verified

252 * @return Error code (0 if successful)
253 */
254static int init_packet(AVPacket **packet)
255{
256 if (!(*packet = av_packet_alloc())) {
257 fprintf(stderr, "Could not allocate packet\n");
258 return AVERROR(ENOMEM);
259 }
260 return 0;
261}
262
263/**
264 * Initialize one audio frame for reading from the input file.

Callers 2

decode_audio_frameFunction · 0.85
encode_audio_frameFunction · 0.85

Calls 1

av_packet_allocFunction · 0.85

Tested by

no test coverage detected