X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fframecrcenc.c;h=470442e27ff125d01f0f791582a2aef39e0d8139;hb=46278ec90ac5ad1dab5e85991f176afe49003fee;hp=dd55c129f0d9fc3c4a91af1aaf3fd8632c9d237c;hpb=73084391588b0f150737990038829cac5013dd68;p=ffmpeg diff --git a/libavformat/framecrcenc.c b/libavformat/framecrcenc.c index dd55c129f0d..470442e27ff 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 + #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", %8"PRId64", %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;