[vlc-commits] Vorbis: don't add empty tags to codec details

Jean-Baptiste Kempf git at videolan.org
Thu Aug 25 16:00:29 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 25 15:59:52 2011 +0200| [f778aeaecf50a5a69ada15714effe331d8905340] | committer: Jean-Baptiste Kempf

Vorbis: don't add empty tags to codec details

Close #4926

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f778aeaecf50a5a69ada15714effe331d8905340
---

 modules/codec/vorbis.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c
index 8ec8c1b..85640c0 100644
--- a/modules/codec/vorbis.c
+++ b/modules/codec/vorbis.c
@@ -570,6 +570,10 @@ static void ParseVorbisComments( decoder_t *p_dec )
             *psz_value = '\0';
             psz_value++;
 
+            /* Don't add empty values */
+            if( *psz_value == '\0' )
+                break;
+
             if( !p_dec->p_description )
                 p_dec->p_description = vlc_meta_New();
             if( p_dec->p_description )



More information about the vlc-commits mailing list