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);