From 1f7fe1597db4d6d984fe8f9235223a404b4280f1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 18 Aug 2017 17:53:29 +0200 Subject: 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. --- audio/audio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'audio') 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); -- cgit v1.2.3