1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/cinedec: fix sizeof()

Fixes CID1197047
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-04-05 22:36:06 +02:00
parent a84f9c75bc
commit 49579c9637

View File

@ -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);
}