Browse Source

mov: Make format string match variable type.

tags/n0.9
Alex Converse 13 years ago
parent
commit
028a2375e2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/mov.c

+ 2
- 2
libavformat/mov.c 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;


Loading…
Cancel
Save