diff options
author | wm4 <wm4@nowhere> | 2017-08-18 17:53:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-18 17:53:38 +0200 |
commit | 1f7fe1597db4d6d984fe8f9235223a404b4280f1 (patch) | |
tree | 2f7aa835d6ff780a1d1497252305e4610ae3eb06 | |
parent | 01058b16f98d57ed5ce8637731e1d56d44dbcc5c (diff) | |
download | mpv-1f7fe1597db4d6d984fe8f9235223a404b4280f1.tar.bz2 mpv-1f7fe1597db4d6d984fe8f9235223a404b4280f1.tar.xz |
audio: fix uninitialized data access
dst was not supposed to be initialized, the mp_audio_ setters (which
initialize dst's fields) assume it is -> shit happens. Regression from
recent changes. Was probably harmless.
-rw-r--r-- | audio/audio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/audio.c b/audio/audio.c index 5c31d3e81a..008aa1883b 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -420,6 +420,7 @@ struct mp_audio *mp_audio_from_aframe(struct mp_aframe *aframe) void mp_audio_config_from_aframe(struct mp_audio *dst, struct mp_aframe *src) { + *dst = (struct mp_audio){0}; struct mp_chmap chmap = {0}; mp_aframe_get_chmap(src, &chmap); mp_audio_set_channels(dst, &chmap); |