| 51 | #define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass" |
| 52 | |
| 53 | static 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 | |
| 69 | static int choose_encoder(const OptionsContext *o, AVFormatContext *s, |
| 70 | MuxStream *ms, const AVCodec **enc) |
no test coverage detected