diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-12-10 17:32:05 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-12-10 17:32:05 +0000 |
commit | 759dd138dfa103ad27360a7d9cae6b87b9af4aa6 (patch) | |
tree | e4abf59cb262d9bfeb76d2f93c763c8618e7d094 | |
parent | 896bcd2e85fce1c6fdf051136960819b37ece2b9 (diff) | |
download | ffmpeg-759dd138dfa103ad27360a7d9cae6b87b9af4aa6.tar.gz |
cosmetics
Originally committed as revision 7270 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/flvdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index a137698113..4c1c9624ee 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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); |