Commit 49579c96 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/cinedec: fix sizeof()

Fixes CID1197047
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a84f9c75
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment