summaryrefslogtreecommitdiff
path: root/libavformat/dump.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-03 22:26:00 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-03 22:26:00 +0200
commitfc07972582acc55675a622ec6d489a7bbf559943 (patch)
treebb6c002adf84727565fbc2551694d4dae5a8e845 /libavformat/dump.c
parent0e84eee7198d9e261f0efc5a0831abc55aa66fd6 (diff)
downloadffmpeg-fc07972582acc55675a622ec6d489a7bbf559943.tar.gz
avformat/dump: Use codec and QP limits from AVCodecContext
Fixes regression Fixes Ticket5421 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 e016a37e9f..7ff5ef03bb 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -455,6 +455,9 @@ static void dump_stream_format(AVFormatContext *ic, int i,
// Fields which are missing from AVCodecParameters need to be taken from the AVCodecContext
avctx->properties = st->codec->properties;
+ avctx->codec = st->codec->codec;
+ avctx->qmin = st->codec->qmin;
+ avctx->qmax = st->codec->qmax;
if (separator)
av_opt_set(avctx, "dump_separator", separator, 0);