aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ffmetaenc.c
diff options
context:
space:
mode:
authorJai Menon <jai@retroficial.org>2011-01-24 22:55:43 -0600
committerMans Rullgard <mans@mansr.com>2011-01-25 17:34:11 +0000
commitc0ae5152d19790e8719c8d1d2bf9b761491dbda6 (patch)
tree699cd5105b34f1109653415a34d551f890904f87 /libavformat/ffmetaenc.c
parente781c4e6ff0b93db1ebc0ebe6983b38490117a98 (diff)
downloadffmpeg-c0ae5152d19790e8719c8d1d2bf9b761491dbda6.tar.gz
ffmetaenc: Use correct format specifiers.
Use printf format macros from inttypes.h. Additionally, this fixes a warning when building with clang.
Diffstat (limited to 'libavformat/ffmetaenc.c')
-rw-r--r--libavformat/ffmetaenc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/ffmetaenc.c b/libavformat/ffmetaenc.c
index f42a2b3f99..785b537332 100644
--- a/libavformat/ffmetaenc.c
+++ b/libavformat/ffmetaenc.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
+
#include "avformat.h"
#include "ffmeta.h"
@@ -72,8 +74,8 @@ static int write_trailer(AVFormatContext *s)
put_tag(s->pb, ID_CHAPTER);
put_byte(s->pb, '\n');
url_fprintf(s->pb, "TIMEBASE=%d/%d\n", ch->time_base.num, ch->time_base.den);
- url_fprintf(s->pb, "START=%lld\n", ch->start);
- url_fprintf(s->pb, "END=%lld\n", ch->end);
+ url_fprintf(s->pb, "START=%"PRId64"\n", ch->start);
+ url_fprintf(s->pb, "END=%"PRId64"\n", ch->end);
write_tags(s->pb, ch->metadata);
}