diff options
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2575,6 +2575,14 @@ static int open_input_file(InputFile *ifile, const char *filename) AVDictionary **opts; int scan_all_pmts_set = 0; + fmt_ctx = avformat_alloc_context(); + if (!fmt_ctx) { + print_error(filename, AVERROR(ENOMEM)); + exit_program(1); + } + + fmt_ctx->flags |= AVFMT_FLAG_KEEP_SIDE_DATA; + if (!av_dict_get(format_opts, "scan_all_pmts", NULL, AV_DICT_MATCH_CASE)) { av_dict_set(&format_opts, "scan_all_pmts", "1", AV_DICT_DONT_OVERWRITE); scan_all_pmts_set = 1; |