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

Vorbis: don't add empty tags to codec details

Close #4926
(cherry picked from commit f778aeaecf50a5a69ada15714effe331d8905340)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2e08b834
...@@ -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