From d92024f18fa3d69937cb2575f3a8bf973df02430 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 10 Mar 2014 15:35:59 +0100 Subject: lavf: more correct printf format specifiers --- libavformat/crcenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/crcenc.c') diff --git a/libavformat/crcenc.c b/libavformat/crcenc.c index 3b30cc9199..925646bc5e 100644 --- a/libavformat/crcenc.c +++ b/libavformat/crcenc.c @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/adler32.h" #include "avformat.h" @@ -48,7 +50,7 @@ static int crc_write_trailer(struct AVFormatContext *s) CRCState *crc = s->priv_data; char buf[64]; - snprintf(buf, sizeof(buf), "CRC=0x%08x\n", crc->crcval); + snprintf(buf, sizeof(buf), "CRC=0x%08"PRIx32"\n", crc->crcval); avio_write(s->pb, buf, strlen(buf)); return 0; -- cgit v1.2.3