aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-06 19:51:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 19:53:11 +0100
commitdb27f50e0658e91758e8a17fdcf390e6bc93c1d2 (patch)
tree869d149e0799c5293355ca81bf31fc15748511d9
parent8327bef1c920c6e2ad654e239f3b746dca20cd89 (diff)
downloadffmpeg-n2.3.6.tar.gz
avformat/mov: Fix mixed declaration and statement warningn2.3.6
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4f4dcc9991..f57568a146 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -214,10 +214,11 @@ static int mov_read_covr(MOVContext *c, AVIOContext *pb, int type, int len)
static int mov_metadata_raw(MOVContext *c, AVIOContext *pb,
unsigned len, const char *key)
{
+ char *value;
// Check for overflow.
if (len >= INT_MAX)
return AVERROR(EINVAL);
- char *value = av_malloc(len + 1);
+ value = av_malloc(len + 1);
if (!value)
return AVERROR(ENOMEM);
avio_read(pb, value, len);