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

Function set_context_opts

cmdutils.c:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void set_context_opts(void *ctx, void *opts_ctx, int flags)
280{
281 int i;
282 for(i=0; i<opt_name_count; i++){
283 char buf[256];
284 const AVOption *opt;
285 const char *str= av_get_string(opts_ctx, opt_names[i], &opt, buf, sizeof(buf));
286 /* if an option with name opt_names[i] is present in opts_ctx then str is non-NULL */
287 if(str && ((opt->flags & flags) == flags))
288 av_set_string3(ctx, opt_names[i], str, 1, NULL);
289 }
290}
291
292void print_error(const char *filename, int err)
293{

Callers 7

opt_input_fileFunction · 0.85
new_video_streamFunction · 0.85
new_audio_streamFunction · 0.85
new_subtitle_streamFunction · 0.85
opt_output_fileFunction · 0.85
stream_component_openFunction · 0.85
decode_threadFunction · 0.85

Calls 2

av_get_stringFunction · 0.85
av_set_string3Function · 0.85

Tested by

no test coverage detected