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

Function dec_thread_set_name

fftools/ffmpeg_dec.c:874–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874static void dec_thread_set_name(const DecoderPriv *dp)
875{
876 char name[16] = "dec";
877
878 if (dp->index >= 0)
879 av_strlcatf(name, sizeof(name), "%d", dp->index);
880 else if (dp->parent_name)
881 av_strlcat(name, dp->parent_name, sizeof(name));
882
883 if (dp->dec_ctx)
884 av_strlcatf(name, sizeof(name), ":%s", dp->dec_ctx->codec->name);
885
886 ff_thread_setname(name);
887}
888
889static void dec_thread_uninit(DecThreadContext *dt)
890{

Callers 1

decoder_threadFunction · 0.85

Calls 3

av_strlcatfFunction · 0.85
av_strlcatFunction · 0.85
ff_thread_setnameFunction · 0.85

Tested by

no test coverage detected