summaryrefslogtreecommitdiffstats
path: root/audio/aframe.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-06-16 03:12:44 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2022-09-02 01:27:31 +0200
commit9be52e5dd8d5b4ae56dfd68430191c818f646beb (patch)
treef341b8121532e07205c4da16a9d4312c4669aeda /audio/aframe.h
parent04062b6f897960938649047c3e2c5ceb08bae295 (diff)
downloadmpv-9be52e5dd8d5b4ae56dfd68430191c818f646beb.tar.bz2
mpv-9be52e5dd8d5b4ae56dfd68430191c818f646beb.tar.xz
ad_lavc: strip non-normalized floats
`opus` codec likes returning denormalized floats in some cases, causing wacky issues. Fixes #10290
Diffstat (limited to 'audio/aframe.h')
-rw-r--r--audio/aframe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/aframe.h b/audio/aframe.h
index be456a3dd1..d19c7e8bcb 100644
--- a/audio/aframe.h
+++ b/audio/aframe.h
@@ -60,6 +60,7 @@ char *mp_aframe_format_str_buf(char *buf, size_t buf_size, struct mp_aframe *fmt
#define mp_aframe_format_str(fmt) mp_aframe_format_str_buf((char[32]){0}, 32, (fmt))
void mp_aframe_skip_samples(struct mp_aframe *f, int samples);
+void mp_aframe_sanitize_float(struct mp_aframe *f);
double mp_aframe_end_pts(struct mp_aframe *f);
double mp_aframe_duration(struct mp_aframe *f);
void mp_aframe_clip_timestamps(struct mp_aframe *f, double start, double end);