[FFmpeg-cvslog] avformat/utils: use av_codec_g/set_lowres()
Michael Niedermayer
git at videolan.org
Tue Apr 12 04:23:04 CEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Apr 12 03:55:19 2016 +0200| [196cfc278d2bce03d03ef95b5b34dfd9689ddb60] | committer: Michael Niedermayer
avformat/utils: use av_codec_g/set_lowres()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=196cfc278d2bce03d03ef95b5b34dfd9689ddb60
---
libavformat/utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 229c077..d6aba5a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3766,7 +3766,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (ret < 0)
goto find_stream_info_err;
// The decoder might reduce the video size by the lowres factor.
- if (st->internal->avctx->lowres && orig_w) {
+ if (av_codec_get_lowres(st->internal->avctx) && orig_w) {
st->codecpar->width = orig_w;
st->codecpar->height = orig_h;
}
@@ -3780,8 +3780,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
// The old API (AVStream.codec) "requires" the resolution to be adjusted
// by the lowres factor.
- if (st->internal->avctx->lowres && st->internal->avctx->width) {
- st->codec->lowres = st->internal->avctx->lowres;
+ if (av_codec_get_lowres(st->internal->avctx) && st->internal->avctx->width) {
+ av_codec_set_lowres(st->codec, av_codec_get_lowres(st->internal->avctx));
st->codec->width = st->internal->avctx->width;
st->codec->height = st->internal->avctx->height;
st->codec->coded_width = st->internal->avctx->coded_width;
More information about the ffmpeg-cvslog
mailing list