[FFmpeg-cvslog] mov: Make format string match variable type.
Alex Converse
git at videolan.org
Mon Nov 28 01:14:15 CET 2011
ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Sat Nov 26 19:41:54 2011 -0800| [028a2375e25d66d1f927f8a0b531eaaf6642cf5c] | committer: Alex Converse
mov: Make format string match variable type.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=028a2375e25d66d1f927f8a0b531eaaf6642cf5c
---
libavformat/mov.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 356a5e8..c883de3 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list