1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-02 17:12:49 +02:00

mov: Make format string match variable type.

This commit is contained in:
Alex Converse 2011-11-26 19:41:54 -08:00
parent f11b0e9543
commit 028a2375e2

View File

@ -89,7 +89,7 @@ static int mov_metadata_int8_bypass_padding(MOVContext *c, AVIOContext *pb,
avio_r8(pb);
avio_r8(pb);
snprintf(buf, sizeof(buf), "%hu", avio_r8(pb));
snprintf(buf, sizeof(buf), "%d", avio_r8(pb));
av_dict_set(&c->fc->metadata, key, buf, 0);
return 0;
@ -100,7 +100,7 @@ static int mov_metadata_int8_no_padding(MOVContext *c, AVIOContext *pb,
{
char buf[16];
snprintf(buf, sizeof(buf), "%hu", avio_r8(pb));
snprintf(buf, sizeof(buf), "%d", avio_r8(pb));
av_dict_set(&c->fc->metadata, key, buf, 0);
return 0;