Skip to content

Commit

Permalink
flac: set vendor_string.length = 0
Browse files Browse the repository at this point in the history
Avoids debug crash with libFLAC 1.2.1; tested on Windows (x64)

Reported-by: Денис Кулаков <kulakov_denis@mail.ru>
  • Loading branch information
kfish committed Apr 19, 2010
1 parent 9e33ff1 commit 9201079
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libfishsound/flac.c
Expand Up @@ -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;

Expand Down

0 comments on commit 9201079

Please sign in to comment.