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

Function check_opt_bitexact

fftools/ffmpeg_mux_init.c:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass"
52
53static int check_opt_bitexact(void *ctx, const AVDictionary *opts,
54 const char *opt_name, int flag)
55{
56 const AVDictionaryEntry *e = av_dict_get(opts, opt_name, NULL, 0);
57
58 if (e) {
59 const AVOption *o = av_opt_find(ctx, opt_name, NULL, 0, 0);
60 int val = 0;
61 if (!o)
62 return 0;
63 av_opt_eval_flags(ctx, o, e->value, &val);
64 return !!(val & flag);
65 }
66 return 0;
67}
68
69static int choose_encoder(const OptionsContext *o, AVFormatContext *s,
70 MuxStream *ms, const AVCodec **enc)

Callers 1

of_openFunction · 0.85

Calls 2

av_dict_getFunction · 0.85
av_opt_findFunction · 0.85

Tested by

no test coverage detected