From ef818d8bf07b0d05fcede6394a6fdc624890f2d0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 13 Apr 2014 19:20:17 +0200 Subject: 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 --- ffplay.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ffplay.c') 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; -- cgit v1.2.3