summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-03-09 15:43:30 +0100
committerwm4 <nfxjfg@googlemail.com>2017-03-14 23:37:28 +0100
commit55eab1733b9e730ceac33edce9aab56c17ea87b2 (patch)
treef94b5cedda34de6d96e3067230bbcd4f357b4b2a /ffprobe.c
parenta70d5e25936424112ecbeb1c304100e68bce0faa (diff)
ffmpeg, ffprobe: don't "merge" side data into packet data by default
Preparation for potentially disabling merged side data by default in the libs. Do this in particular because it affects fate tests. The changed tests either reflect added packet side data, or the changed packet size due to merged side data removal reducing the packet size.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index b104390990..17dc73294f 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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;