[FFmpeg-cvslog] wtv: fix variable sign in format

Vittorio Giovara git at videolan.org
Sun Nov 3 12:53:35 CET 2013


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Sun Oct 27 18:05:19 2013 +0100| [c0bba95c2363641d3297b3852b2ece1474cda295] | committer: Vittorio Giovara

wtv: fix variable sign in format

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0bba95c2363641d3297b3852b2ece1474cda295
---

 libavformat/wtv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index b144eb6..0c24fd7 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -525,7 +525,7 @@ static void get_tag(AVFormatContext *s, AVIOContext *pb, const char *key, int ty
         else
             snprintf(buf, buf_size, "%"PRIi64, num);
     } else if (type == 5 && length == 2) {
-        snprintf(buf, buf_size, "%"PRIi16, avio_rl16(pb));
+        snprintf(buf, buf_size, "%u", avio_rl16(pb));
     } else if (type == 6 && length == 16) {
         ff_asf_guid guid;
         avio_read(pb, guid, 16);



More information about the ffmpeg-cvslog mailing list