diff options
Diffstat (limited to 'audio/filter')
-rw-r--r-- | audio/filter/af.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c index 46e577537f..1f57be5ff6 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -526,11 +526,16 @@ static int af_reinit(struct af_stream *s) // Reset just in case... mp_audio_set_null_data(&in); + if (!mp_audio_config_valid(&in)) + goto error; + int rv = af->control(af, AF_CONTROL_REINIT, &in); if (rv == AF_OK && !mp_audio_config_equals(&in, af->prev->data)) rv = AF_FALSE; // conversion filter needed switch (rv) { case AF_OK: + if (!mp_audio_config_valid(af->data)) + goto error; af = af->next; break; case AF_FALSE: { // Configuration filter is needed |