Commit 60de31e9 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: Export coded dimensions unconditionally

This fixes a API regression
Probably fixes Ticket5451
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 66023612
...@@ -3803,8 +3803,6 @@ FF_DISABLE_DEPRECATION_WARNINGS ...@@ -3803,8 +3803,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
av_codec_set_lowres(st->codec, av_codec_get_lowres(st->internal->avctx)); av_codec_set_lowres(st->codec, av_codec_get_lowres(st->internal->avctx));
st->codec->width = st->internal->avctx->width; st->codec->width = st->internal->avctx->width;
st->codec->height = st->internal->avctx->height; st->codec->height = st->internal->avctx->height;
st->codec->coded_width = st->internal->avctx->coded_width;
st->codec->coded_height = st->internal->avctx->coded_height;
} }
if (st->codec->codec_tag != MKTAG('t','m','c','d')) if (st->codec->codec_tag != MKTAG('t','m','c','d'))
...@@ -3821,6 +3819,8 @@ FF_DISABLE_DEPRECATION_WARNINGS ...@@ -3821,6 +3819,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
} }
// Fields unavailable in AVCodecParameters // Fields unavailable in AVCodecParameters
st->codec->coded_width = st->internal->avctx->coded_width;
st->codec->coded_height = st->internal->avctx->coded_height;
st->codec->properties = st->internal->avctx->properties; st->codec->properties = st->internal->avctx->properties;
FF_ENABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS
#endif #endif
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "libavutil/version.h" #include "libavutil/version.h"
// When bumping major check Ticket5467, 5421 for regressing // When bumping major check Ticket5467, 5421, 5451(compatibility with Chromium) for regressing
// Also please add any ticket numbers that you belive might regress here // Also please add any ticket numbers that you belive might regress here
#define LIBAVFORMAT_VERSION_MAJOR 57 #define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 37 #define LIBAVFORMAT_VERSION_MINOR 37
......
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