Commit d6d33e21 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

vorbiscomment.c : Do not write empty vorbiscomment fields.

That is, only write vorbis comment fields if they are non-empty.

Patch-from: Janne Hyvärinen <>
parent 4fa58808
......@@ -243,7 +243,7 @@ FLAC__bool flac__vorbiscomment_add(FLAC__StreamMetadata *block, const char *comm
return false;
if(!set_vc_field(block, &parsed, &dummy, raw, violation)) {
if(parsed.field_value_length > 0 && !set_vc_field(block, &parsed, &dummy, raw, violation)) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment