Browse Source

avformat/dump: Use codec and QP limits from AVCodecContext

Fixes regression
Fixes Ticket5421

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Michael Niedermayer 9 years ago
parent
commit
fc07972582
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/dump.c

+ 3
- 0
libavformat/dump.c View 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);


Loading…
Cancel
Save