summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/audio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 3d93f7d4c4..ed07c4dc91 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -119,8 +119,10 @@ int mp_audio_psize(struct mp_audio *mpa)
void mp_audio_set_null_data(struct mp_audio *mpa)
{
- for (int n = 0; n < MP_NUM_CHANNELS; n++)
+ for (int n = 0; n < MP_NUM_CHANNELS; n++) {
mpa->planes[n] = NULL;
+ mpa->allocated[n] = NULL;
+ }
mpa->samples = 0;
}