diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-10 18:35:59 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-11 16:13:41 +0400 |
commit | d92024f18fa3d69937cb2575f3a8bf973df02430 (patch) | |
tree | b3761f3c586916a0685e125bee9b9ed95b25aa25 /libavformat/crcenc.c | |
parent | 7caf48e036583cd5833f5dc07ab14960dff25e04 (diff) |
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/crcenc.c')
-rw-r--r-- | libavformat/crcenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <inttypes.h> + #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; |