changeset 1561:a21addc40d10 libavformat

cosmetics
author michael
date Sun, 10 Dec 2006 17:32:05 +0000
parents f59b66f9d679
children 61df6b5d52d3
files flvdec.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Sun Dec 10 17:31:17 2006 +0000
+++ b/flvdec.c	Sun Dec 10 17:32:05 2006 +0000
@@ -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);