| 52 | static AVDictionary *avformat_options = nullptr; |
| 53 | |
| 54 | static Ffmpeg::FormatContext |
| 55 | FfmpegOpenInput(AVIOContext *pb, |
| 56 | const char *filename, |
| 57 | AVInputFormat *fmt) |
| 58 | { |
| 59 | Ffmpeg::FormatContext context(pb); |
| 60 | |
| 61 | AVDictionary *options = nullptr; |
| 62 | AtScopeExit(&options) { av_dict_free(&options); }; |
| 63 | av_dict_copy(&options, avformat_options, 0); |
| 64 | |
| 65 | context.OpenInput(filename, fmt, &options); |
| 66 | |
| 67 | return context; |
| 68 | } |
| 69 | |
| 70 | static bool |
| 71 | ffmpeg_init(const ConfigBlock &block) |
no outgoing calls
no test coverage detected