| 277 | } |
| 278 | |
| 279 | void 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 | |
| 292 | void print_error(const char *filename, int err) |
| 293 | { |
no test coverage detected