summaryrefslogtreecommitdiffstats
path: root/filters/f_autoconvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'filters/f_autoconvert.c')
-rw-r--r--filters/f_autoconvert.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/filters/f_autoconvert.c b/filters/f_autoconvert.c
index 78b716623e..6d53a5dce3 100644
--- a/filters/f_autoconvert.c
+++ b/filters/f_autoconvert.c
@@ -286,6 +286,11 @@ static void handle_audio_frame(struct mp_filter *f)
struct mp_chmap chmap = {0};
mp_aframe_get_chmap(aframe, &chmap);
+ if (p->resampling_forced && !af_fmt_is_pcm(afmt)) {
+ MP_WARN(p, "ignoring request to resample non-PCM audio for speed change\n");
+ p->resampling_forced = false;
+ }
+
bool format_change = afmt != p->in_afmt ||
srate != p->in_srate ||
!mp_chmap_equals(&chmap, &p->in_chmap) ||