summaryrefslogtreecommitdiff
path: root/libavformat/framecrcenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-03-10 15:35:59 +0100
committerDiego Biurrun <diego@biurrun.de>2014-03-11 13:13:41 +0100
commitd92024f18fa3d69937cb2575f3a8bf973df02430 (patch)
treeb3761f3c586916a0685e125bee9b9ed95b25aa25 /libavformat/framecrcenc.c
parent7caf48e036583cd5833f5dc07ab14960dff25e04 (diff)
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/framecrcenc.c')
-rw-r--r--libavformat/framecrcenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/framecrcenc.c b/libavformat/framecrcenc.c
index dd55c129f0..4d5483a70e 100644
--- a/libavformat/framecrcenc.c
+++ b/libavformat/framecrcenc.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"
#include "internal.h"
@@ -28,7 +30,7 @@ static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
uint32_t crc = av_adler32_update(0, pkt->data, pkt->size);
char buf[256];
- snprintf(buf, sizeof(buf), "%d, %10"PRId64", %10"PRId64", %8d, %8d, 0x%08x\n",
+ snprintf(buf, sizeof(buf), "%d, %10"PRId64", %10"PRId64", %8d, %8d, 0x%08"PRIx32"\n",
pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size, crc);
avio_write(s->pb, buf, strlen(buf));
return 0;