summaryrefslogtreecommitdiff
path: root/libavformat/dump.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-30 14:00:53 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-02 16:57:49 +0200
commitad72d7d299c4b8355d4e3809bb9d5dbe8ac6cbb5 (patch)
treeedce99bcb1c35845e5727c4f34d176361886c9f5 /libavformat/dump.c
parent3402871f36f9d5ec5670190663ebe30c8e15c436 (diff)
avformat: Copy properties from internal context
Fixes Ticket5467 "Lossless j2k information no longer shown" Based on suggestion by Hendrik Leppkes Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r--libavformat/dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c
index 9eb6146785..e016a37e9f 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -453,6 +453,9 @@ static void dump_stream_format(AVFormatContext *ic, int i,
return;
}
+ // Fields which are missing from AVCodecParameters need to be taken from the AVCodecContext
+ avctx->properties = st->codec->properties;
+
if (separator)
av_opt_set(avctx, "dump_separator", separator, 0);
avcodec_string(buf, sizeof(buf), avctx, is_output);