[Ffmpeg-cvslog] r7270 - trunk/libavformat/flvdec.c

michael subversion
Sun Dec 10 18:32:05 CET 2006


Author: michael
Date: Sun Dec 10 18:32:05 2006
New Revision: 7270

Modified:
   trunk/libavformat/flvdec.c

Log:
cosmetics


Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Sun Dec 10 18:32:05 2006
@@ -41,12 +41,10 @@
 }
 
 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);




More information about the ffmpeg-cvslog mailing list