diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-06 19:51:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-06 19:53:11 +0100 |
commit | db27f50e0658e91758e8a17fdcf390e6bc93c1d2 (patch) | |
tree | 869d149e0799c5293355ca81bf31fc15748511d9 | |
parent | 8327bef1c920c6e2ad654e239f3b746dca20cd89 (diff) | |
download | ffmpeg-ac39a09744777048f3c99281a1cb4aafadfda54b.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.c | 3 |
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); |