summaryrefslogtreecommitdiff
path: root/libavformat/cinedec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-05 22:36:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-05 22:37:10 +0200
commit49579c96376539607aa6d3412721d0af48415f33 (patch)
tree07e04428a07991d53f39243c0080e013ad91a3d4 /libavformat/cinedec.c
parenta84f9c75bc3f55fed4f68d2503a08ab70c76ecbe (diff)
downloadffmpeg-49579c96376539607aa6d3412721d0af48415f33.tar.gz
avformat/cinedec: fix sizeof()
Fixes CID1197047 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/cinedec.c')
-rw-r--r--libavformat/cinedec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c
index 003ca519bc..d3e3e1bc1b 100644
--- a/libavformat/cinedec.c
+++ b/libavformat/cinedec.c
@@ -74,7 +74,7 @@ static int set_metadata_int(AVDictionary **dict, const char *key, int value)
{
if (value) {
char buf[64];
- snprintf(buf, sizeof(buf - 1), "%i", value);
+ snprintf(buf, sizeof(buf), "%i", value);
buf[sizeof(buf) - 1] = 0;
return av_dict_set(dict, key, buf, 0);
}