diff options
-rw-r--r-- | audio/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c index 2a67e22e5e..02cd27d0d0 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -115,7 +115,7 @@ void mp_audio_set_null_data(struct mp_audio *mpa) static void mp_audio_destructor(void *ptr) { struct mp_audio *mpa = ptr; - for (int n = mpa->num_planes; n < MP_NUM_CHANNELS; n++) { + for (int n = 0; n < MP_NUM_CHANNELS; n++) { // Note: don't free if not allocated by mp_audio_realloc if (mpa->allocated[n]) av_free(mpa->planes[n]); |