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

Function enc_thread_init

fftools/ffmpeg_enc.c:841–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841static int enc_thread_init(EncoderThread *et)
842{
843 memset(et, 0, sizeof(*et));
844
845 et->frame = av_frame_alloc();
846 if (!et->frame)
847 goto fail;
848
849 et->pkt = av_packet_alloc();
850 if (!et->pkt)
851 goto fail;
852
853 return 0;
854
855fail:
856 enc_thread_uninit(et);
857 return AVERROR(ENOMEM);
858}
859
860int encoder_thread(void *arg)
861{

Callers 1

encoder_threadFunction · 0.85

Calls 3

av_frame_allocFunction · 0.85
av_packet_allocFunction · 0.85
enc_thread_uninitFunction · 0.85

Tested by

no test coverage detected