audio: clear buffer array too with mp_audio_set_null_data()

This commit is contained in:
wm4 2014-11-10 20:50:21 +01:00
parent e094e9cb75
commit c1b034f2aa
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}