]> git.sesse.net Git - ffmpeg/commitdiff
cosmetics
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Dec 2006 17:32:05 +0000 (17:32 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Dec 2006 17:32:05 +0000 (17:32 +0000)
Originally committed as revision 7270 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/flvdec.c

index a13769811345ff200e7674b141f4dca9119cadf7..4c1c9624eea32e730a28f65e7fca2aec2566a8d7 100644 (file)
@@ -41,12 +41,10 @@ static int flv_probe(AVProbeData *p)
 }
 
 static int amf_get_string(ByteIOContext *ioc, char *buffer, int buffsize) {
-    int length;
-
-    length = get_be16(ioc);
+    int length = get_be16(ioc);
     if(length >= buffsize) {
         url_fskip(ioc, length);
-        return -1; //string will not fit in buffer
+        return -1;
     }
 
     get_buffer(ioc, buffer, length);