Mercurial > libavformat.hg
diff asf.c @ 1443:404048ea11bc libavformat
Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com
author | diego |
---|---|
date | Wed, 01 Nov 2006 22:39:58 +0000 |
parents | 3b00fb8ef8e4 |
children | a4ab86a48604 |
line wrap: on
line diff
--- a/asf.c Wed Nov 01 21:28:36 2006 +0000 +++ b/asf.c Wed Nov 01 22:39:58 2006 +0000 @@ -167,9 +167,9 @@ get_guid(pb, &g); gsize = get_le64(pb); #ifdef DEBUG - printf("%08Lx: ", url_ftell(pb) - 24); + printf("%08"PRIx64": ", url_ftell(pb) - 24); print_guid(&g); - printf(" size=0x%Lx\n", gsize); + printf(" size=0x%"PRIx64"\n", gsize); #endif if (gsize < 24) goto fail; @@ -512,7 +512,7 @@ rsize+=2; /* }else{ if (!url_feof(pb)) - printf("ff asf bad header %x at:%lld\n", c, url_ftell(pb)); + printf("ff asf bad header %x at:%"PRId64"\n", c, url_ftell(pb)); return AVERROR_IO;*/ } @@ -566,7 +566,7 @@ || asf->packet_segments < 1) { //asf->packet_size_left <= asf->packet_padsize) { int ret = asf->packet_size_left + asf->packet_padsize; - //printf("PacketLeftSize:%d Pad:%d Pos:%Ld\n", asf->packet_size_left, asf->packet_padsize, url_ftell(pb)); + //printf("PacketLeftSize:%d Pad:%d Pos:%"PRId64"\n", asf->packet_size_left, asf->packet_padsize, url_ftell(pb)); if((url_ftell(&s->pb) + ret - s->data_offset) % asf->packet_size) ret += asf->packet_size - ((url_ftell(&s->pb) + ret - s->data_offset) % asf->packet_size); assert(ret>=0); @@ -845,7 +845,7 @@ } *ppos= pos; -//printf("found keyframe at %Ld stream %d stamp:%Ld\n", *ppos, stream_index, pts); +//printf("found keyframe at %"PRId64" stream %d stamp:%"PRId64"\n", *ppos, stream_index, pts); return pts; }