aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 20:41:21 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 20:41:26 +0200
commit7db84a961aa117d8e8d355819fc70f91670ca956 (patch)
tree4feb6a4773093152647400ab4b153cfd9e1d9959
parenta960e2ef48d21e73c7db7ead6f73c1b1d3ee8d42 (diff)
downloadmpd-7db84a961aa117d8e8d355819fc70f91670ca956.tar.gz
mpd-7db84a961aa117d8e8d355819fc70f91670ca956.tar.xz
mpd-7db84a961aa117d8e8d355819fc70f91670ca956.zip
decoder/dsdiff: fix metadata parser bug (uninitialized variables)
Diffstat (limited to '')
-rw-r--r--NEWS1
-rw-r--r--src/decoder/DsdiffDecoderPlugin.cxx5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7acf48cc9..924d8cd2b 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ ver 0.18.12 (not yet released)
- audiofile: improve responsiveness
- audiofile: fix WAV stream playback
- dsdiff, dsf: fix stream playback
+ - dsdiff: fix metadata parser bug (uninitialized variables)
- faad: estimate song duration for remote files
- sndfile: improve responsiveness
* randomize next song when enabling "random" mode while not playing
diff --git a/src/decoder/DsdiffDecoderPlugin.cxx b/src/decoder/DsdiffDecoderPlugin.cxx
index f8506851a..4eee71711 100644
--- a/src/decoder/DsdiffDecoderPlugin.cxx
+++ b/src/decoder/DsdiffDecoderPlugin.cxx
@@ -250,8 +250,11 @@ dsdiff_read_metadata_extra(Decoder *decoder, InputStream &is,
if (!dsdiff_read_chunk_header(decoder, is, chunk_header))
return false;
+ metadata->diar_offset = 0;
+ metadata->diti_offset = 0;
+
#ifdef HAVE_ID3TAG
- metadata->id3_size = 0;
+ metadata->id3_offset = 0;
#endif
/* Now process all the remaining chunk headers in the stream