Commit f778aeae authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Vorbis: don't add empty tags to codec details

Close #4926
parent 885a3826
...@@ -570,6 +570,10 @@ static void ParseVorbisComments( decoder_t *p_dec ) ...@@ -570,6 +570,10 @@ static void ParseVorbisComments( decoder_t *p_dec )
*psz_value = '\0'; *psz_value = '\0';
psz_value++; psz_value++;
/* Don't add empty values */
if( *psz_value == '\0' )
break;
if( !p_dec->p_description ) if( !p_dec->p_description )
p_dec->p_description = vlc_meta_New(); p_dec->p_description = vlc_meta_New();
if( p_dec->p_description ) if( p_dec->p_description )
......
Markdown is supported
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