]> git.sesse.net Git - ffmpeg/commitdiff
id3v2: Use 0 instead of '\0'.
authorAnton Khirnov <wyskas@gmail.com>
Wed, 23 Sep 2009 18:10:29 +0000 (18:10 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 23 Sep 2009 18:10:29 +0000 (18:10 +0000)
patch by Anton Khirnov, wyskas gmail com

Originally committed as revision 20005 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/id3v2.c

index 8070a4a34df65fe6e5f4273fb57e0e1904e97d9b..6b1c4606e928b6aab2631872c6b27b1946db4104 100644 (file)
@@ -96,7 +96,7 @@ static void read_ttag(AVFormatContext *s, int taglen, const char *key)
             uint8_t tmp;
             PUT_UTF8(get_byte(s->pb), tmp, *q++ = tmp;)
         }
-        *q = '\0';
+        *q = 0;
         break;
 
     case 3:  /* UTF-8 */