mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-28 13:40:55 +00:00
lavf: Drop deprecated bitexact functionality
Deprecated in 05/2014.
This commit is contained in:
parent
96a47364d1
commit
5e71299758
@ -99,13 +99,6 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
|
|||||||
if ((ret = av_opt_set_dict(s, &tmp)) < 0)
|
if ((ret = av_opt_set_dict(s, &tmp)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
#if FF_API_LAVF_BITEXACT && FF_API_LAVF_AVCTX
|
|
||||||
FF_DISABLE_DEPRECATION_WARNINGS
|
|
||||||
if (s->nb_streams && s->streams[0]->codec->flags & AV_CODEC_FLAG_BITEXACT)
|
|
||||||
s->flags |= AVFMT_FLAG_BITEXACT;
|
|
||||||
FF_ENABLE_DEPRECATION_WARNINGS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// some sanity checks
|
// some sanity checks
|
||||||
if (s->nb_streams == 0 && !(of->flags & AVFMT_NOSTREAMS)) {
|
if (s->nb_streams == 0 && !(of->flags & AVFMT_NOSTREAMS)) {
|
||||||
av_log(s, AV_LOG_ERROR, "no streams\n");
|
av_log(s, AV_LOG_ERROR, "no streams\n");
|
||||||
|
@ -48,9 +48,6 @@
|
|||||||
* dropped at a future version bump. The defines themselves are not part of
|
* dropped at a future version bump. The defines themselves are not part of
|
||||||
* the public API and may change, break or disappear at any time.
|
* the public API and may change, break or disappear at any time.
|
||||||
*/
|
*/
|
||||||
#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…
Reference in New Issue
Block a user