Commit 759dd138 authored by Michael Niedermayer's avatar Michael Niedermayer

cosmetics

Originally committed as revision 7270 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 896bcd2e
...@@ -41,12 +41,10 @@ static int flv_probe(AVProbeData *p) ...@@ -41,12 +41,10 @@ static int flv_probe(AVProbeData *p)
} }
static int amf_get_string(ByteIOContext *ioc, char *buffer, int buffsize) { static int amf_get_string(ByteIOContext *ioc, char *buffer, int buffsize) {
int length; int length = get_be16(ioc);
length = get_be16(ioc);
if(length >= buffsize) { if(length >= buffsize) {
url_fskip(ioc, length); url_fskip(ioc, length);
return -1; //string will not fit in buffer return -1;
} }
get_buffer(ioc, buffer, length); get_buffer(ioc, buffer, length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment