From: Conrad Parker <conrad@metadecks.org>
Date: Tue, 20 Apr 2010 07:13:53 +0900
Subject: flac: set vendor_string.length = 0

Origin: upstream, http://git.xiph.org/?p=libfishsound.git;a=commit;h=9201079c5155c7b27db98de6543b05631362364d

Avoids debug crash with libFLAC 1.2.1; tested on Windows (x64)
---
 src/libfishsound/flac.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libfishsound/flac.c b/src/libfishsound/flac.c
index b42ea78..930c77b 100644
--- a/src/libfishsound/flac.c
+++ b/src/libfishsound/flac.c
@@ -541,6 +541,7 @@ fs_flac_encode_vorbiscomments (FishSound * fsound)
   metadata->is_last = true;
   metadata->length = total_length;
   /* Don't bother setting the vendor_string, as libFLAC ignores it */
+  metadata->data.vorbis_comment.vendor_string.length = 0;
   metadata->data.vorbis_comment.num_comments = length;
   metadata->data.vorbis_comment.comments = comments;
 
