[FFmpeg-cvslog] avformat/dump: Use codec and QP limits from AVCodecContext
Michael Niedermayer
git at videolan.org
Fri Jun 3 23:09:56 CEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jun 3 22:26:00 2016 +0200| [fc07972582acc55675a622ec6d489a7bbf559943] | committer: Michael Niedermayer
avformat/dump: Use codec and QP limits from AVCodecContext
Fixes regression
Fixes Ticket5421
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc07972582acc55675a622ec6d489a7bbf559943
---
libavformat/dump.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/dump.c b/libavformat/dump.c
index e016a37..7ff5ef0 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);
More information about the ffmpeg-cvslog
mailing list