avformat/dump: Use codec and QP limits from AVCodecContext
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Jun 2016 20:26:00 +0000 (22:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Jun 2016 20:26:00 +0000 (22:26 +0200)
Fixes regression
Fixes Ticket5421

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/dump.c

index e016a37..7ff5ef0 100644 (file)
@@ -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);