From fc07972582acc55675a622ec6d489a7bbf559943 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 3 Jun 2016 22:26:00 +0200 Subject: [PATCH] avformat/dump: Use codec and QP limits from AVCodecContext Fixes regression Fixes Ticket5421 Signed-off-by: Michael Niedermayer --- libavformat/dump.c | 3 +++ 1 file changed, 3 insertions(+) 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);