Commit 47b03415 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/cinedec: remove redundant zero termination

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent af2e5061
...@@ -75,7 +75,6 @@ static int set_metadata_int(AVDictionary **dict, const char *key, int value) ...@@ -75,7 +75,6 @@ static int set_metadata_int(AVDictionary **dict, const char *key, int value)
if (value) { if (value) {
char buf[64]; char buf[64];
snprintf(buf, sizeof(buf), "%i", value); snprintf(buf, sizeof(buf), "%i", value);
buf[sizeof(buf) - 1] = 0;
return av_dict_set(dict, key, buf, 0); return av_dict_set(dict, key, buf, 0);
} }
return 0; return 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