summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-13 19:20:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-15 02:37:40 +0200
commitef818d8bf07b0d05fcede6394a6fdc624890f2d0 (patch)
tree4db6fe9536ea60045eee1da594d9e68741bf2edc /ffplay.c
parent2adcd15f2e02e240b31353285f9336a4cbab8274 (diff)
avformat: add av_format_inject_global_side_data(), and disable it by default
After this commit applications needs to call av_format_inject_global_side_data() or handle AVStream side data by some other means if they want it not to be lost. This fixes a API incompatibility with libav. libav API does not allow the data to be passed through AVPackets Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index c86f94ff47..86b9126ab2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2752,6 +2752,8 @@ static int read_thread(void *arg)
if (genpts)
ic->flags |= AVFMT_FLAG_GENPTS;
+ av_format_inject_global_side_data(ic);
+
opts = setup_find_stream_info_opts(ic, codec_opts);
orig_nb_streams = ic->nb_streams;