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

Function dec_thread_init

fftools/ffmpeg_dec.c:897–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897static int dec_thread_init(DecThreadContext *dt)
898{
899 memset(dt, 0, sizeof(*dt));
900
901 dt->frame = av_frame_alloc();
902 if (!dt->frame)
903 goto fail;
904
905 dt->pkt = av_packet_alloc();
906 if (!dt->pkt)
907 goto fail;
908
909 return 0;
910
911fail:
912 dec_thread_uninit(dt);
913 return AVERROR(ENOMEM);
914}
915
916static int decoder_thread(void *arg)
917{

Callers 1

decoder_threadFunction · 0.85

Calls 3

av_frame_allocFunction · 0.85
av_packet_allocFunction · 0.85
dec_thread_uninitFunction · 0.85

Tested by

no test coverage detected