diff options
author | wm4 <wm4@nowhere> | 2019-05-24 20:12:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | 6d11668a9c448674ac04ef61bf902c867671d8db (patch) | |
tree | 34336a83e651cebbbde0b089587dc3c37dea1d77 /common/av_common.h | |
parent | 327f3fc848e6e30d431411e103e10dbae7f461e3 (diff) | |
download | mpv-6d11668a9c448674ac04ef61bf902c867671d8db.tar.bz2 mpv-6d11668a9c448674ac04ef61bf902c867671d8db.tar.xz |
demux: use no overlapping packets for lossless audio
Worthless optimization, but at least it justifies that the
--audio-backward-overlap option has an "auto" choice. Tested with PCM
and FLAC.
Diffstat (limited to 'common/av_common.h')
-rw-r--r-- | common/av_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/av_common.h b/common/av_common.h index 4037afa0ad..1b3e468884 100644 --- a/common/av_common.h +++ b/common/av_common.h @@ -19,6 +19,7 @@ #define MP_AVCOMMON_H #include <inttypes.h> +#include <stdbool.h> #include <libavutil/avutil.h> #include <libavutil/rational.h> @@ -44,6 +45,7 @@ void mp_add_lavc_encoders(struct mp_decoder_list *list); char **mp_get_lavf_demuxers(void); int mp_codec_to_av_codec_id(const char *codec); const char *mp_codec_from_av_codec_id(int codec_id); +bool mp_codec_is_lossless(const char *codec); void mp_set_avdict(struct AVDictionary **dict, char **kv); void mp_avdict_print_unset(struct mp_log *log, int msgl, struct AVDictionary *d); int mp_set_avopts(struct mp_log *log, void *avobj, char **kv); |