Commit fc079725 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/dump: Use codec and QP limits from AVCodecContext

Fixes regression
Fixes Ticket5421
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0e84eee7
...@@ -455,6 +455,9 @@ static void dump_stream_format(AVFormatContext *ic, int i, ...@@ -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 // Fields which are missing from AVCodecParameters need to be taken from the AVCodecContext
avctx->properties = st->codec->properties; avctx->properties = st->codec->properties;
avctx->codec = st->codec->codec;
avctx->qmin = st->codec->qmin;
avctx->qmax = st->codec->qmax;
if (separator) if (separator)
av_opt_set(avctx, "dump_separator", separator, 0); av_opt_set(avctx, "dump_separator", separator, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment