summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-12-10 17:32:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-12-10 17:32:05 +0000
commit759dd138dfa103ad27360a7d9cae6b87b9af4aa6 (patch)
treee4abf59cb262d9bfeb76d2f93c763c8618e7d094 /libavformat/flvdec.c
parent896bcd2e85fce1c6fdf051136960819b37ece2b9 (diff)
cosmetics
Originally committed as revision 7270 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c6
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);