mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
Merge commit '5e71299758d3aa7c93c3cca618a8e048a9483794'
* commit '5e71299758d3aa7c93c3cca618a8e048a9483794': lavf: Drop deprecated bitexact functionality Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
f02bda3a03
@ -255,19 +255,10 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
|
|||||||
FF_DISABLE_DEPRECATION_WARNINGS
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
if (s->nb_streams && s->streams[0]->codec->flags & AV_CODEC_FLAG_BITEXACT) {
|
if (s->nb_streams && s->streams[0]->codec->flags & AV_CODEC_FLAG_BITEXACT) {
|
||||||
if (!(s->flags & AVFMT_FLAG_BITEXACT)) {
|
if (!(s->flags & AVFMT_FLAG_BITEXACT)) {
|
||||||
#if FF_API_LAVF_BITEXACT
|
|
||||||
av_log(s, AV_LOG_WARNING,
|
|
||||||
"Setting the AVFormatContext to bitexact mode, because "
|
|
||||||
"the AVCodecContext is in that mode. This behavior will "
|
|
||||||
"change in the future. To keep the current behavior, set "
|
|
||||||
"AVFormatContext.flags |= AVFMT_FLAG_BITEXACT.\n");
|
|
||||||
s->flags |= AVFMT_FLAG_BITEXACT;
|
|
||||||
#else
|
|
||||||
av_log(s, AV_LOG_WARNING,
|
av_log(s, AV_LOG_WARNING,
|
||||||
"The AVFormatContext is not in set to bitexact mode, only "
|
"The AVFormatContext is not in set to bitexact mode, only "
|
||||||
"the AVCodecContext. If this is not intended, set "
|
"the AVCodecContext. If this is not intended, set "
|
||||||
"AVFormatContext.flags |= AVFMT_FLAG_BITEXACT.\n");
|
"AVFormatContext.flags |= AVFMT_FLAG_BITEXACT.\n");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FF_ENABLE_DEPRECATION_WARNINGS
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
|
@ -55,9 +55,6 @@
|
|||||||
* at once through the bump. This improves the git bisect-ability of the change.
|
* at once through the bump. This improves the git bisect-ability of the change.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef FF_API_LAVF_BITEXACT
|
|
||||||
#define FF_API_LAVF_BITEXACT (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
||||||
#endif
|
|
||||||
#ifndef FF_API_LAVF_FRAC
|
#ifndef FF_API_LAVF_FRAC
|
||||||
#define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 58)
|
#define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 58)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user