You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mov: Make format string match variable type.
This commit is contained in:
@@ -89,7 +89,7 @@ static int mov_metadata_int8_bypass_padding(MOVContext *c, AVIOContext *pb,
|
|||||||
avio_r8(pb);
|
avio_r8(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);
|
av_dict_set(&c->fc->metadata, key, buf, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -100,7 +100,7 @@ static int mov_metadata_int8_no_padding(MOVContext *c, AVIOContext *pb,
|
|||||||
{
|
{
|
||||||
char buf[16];
|
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);
|
av_dict_set(&c->fc->metadata, key, buf, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user