Mercurial > libavformat.hg
changeset 1010:62623b1abf81 libavformat
use of PRI macros in dprintf
author | bcoudurier |
---|---|
date | Sun, 12 Mar 2006 15:43:22 +0000 |
parents | 1e37927ea0bd |
children | a149521570f8 |
files | mov.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Sun Mar 12 13:38:56 2006 +0000 +++ b/mov.c Sun Mar 12 15:43:22 2006 +0000 @@ -439,7 +439,7 @@ } total_size += 8; a.offset += 8; - dprintf("type: %08x %.4s sz: %PRIx64 %PRIx64 %PRIx64\n", a.type, (char*)&a.type, a.size, atom.size, total_size); + dprintf("type: %08x %.4s sz: %"PRIx64" %"PRIx64" %"PRIx64"\n", a.type, (char*)&a.type, a.size, atom.size, total_size); if (a.size == 1) { /* 64 bit extended size */ a.size = get_be64(pb) - 8; a.offset += 8; @@ -738,7 +738,7 @@ if (st->codec->extradata) { strcpy(st->codec->extradata, "SVQ3"); // fake get_buffer(pb, st->codec->extradata + 0x5a, atom.size); - dprintf("Reading SMI %PRId64 %s\n", atom.size, (char*)st->codec->extradata + 0x5a); + dprintf("Reading SMI %"PRId64" %s\n", atom.size, (char*)st->codec->extradata + 0x5a); } else url_fskip(pb, atom.size); @@ -1717,7 +1717,7 @@ } dts = time + (msc->current_sample-1 - sample) * (int64_t)duration; dts = av_rescale(dts, AV_TIME_BASE, msc->time_scale); - dprintf("stream: %d dts: %PRId64 best_dts: %PRId64 offset: %PRId64 \n", i, dts, best_dts, offset); + dprintf("stream: %d dts: %"PRId64" best_dts: %"PRId64" offset: %"PRId64"\n", i, dts, best_dts, offset); if(dts < best_dts){ best_dts= dts; sc = msc; @@ -1804,7 +1804,7 @@ } readchunk: - dprintf("chunk: %lli -> %lli (%i)\n", offset, offset + size, size); + dprintf("chunk: %"PRId64" -> %"PRId64" (%i)\n", offset, offset + size, size); if(size == 0x0FFFFFFF) size = mov->mdat_size + mov->mdat_offset - offset; if(size < 0) @@ -1872,7 +1872,7 @@ pkt->pts = pts / st->time_base.num; pkt->dts = dts / st->time_base.num; - dprintf("stream #%d smp #%ld dts = %lld pts = %lld (smp:%ld time:%lld idx:%d ent:%d count:%d dur:%d)\n" + dprintf("stream #%d smp #%ld dts = %"PRId64" pts = %"PRId64" (smp:%ld time:%"PRId64" idx:%d ent:%d count:%d dur:%d)\n" , pkt->stream_index, sc->current_sample-1, pkt->dts, pkt->pts , sc->sample_to_time_sample , sc->sample_to_time_time @@ -2000,7 +2000,7 @@ return -1; } chunk_file_offset = sc->chunk_offsets[chunk - 1]; - dprintf("Chunk file offset is #%llu \n", chunk_file_offset); + dprintf("Chunk file offset is #%"PRIu64"\n", chunk_file_offset); // Step 6. Find the byte offset within the chunk using the sample size atom sample_file_offset = chunk_file_offset; @@ -2011,7 +2011,7 @@ sample_file_offset += sc->sample_sizes[first_chunk_sample + i - 1]; } } - dprintf("Sample file offset is #%llu \n", sample_file_offset); + dprintf("Sample file offset is #%"PRIu64"\n", sample_file_offset); // Step 6. Update the parser mov->partial = sc; @@ -2041,7 +2041,7 @@ msc->next_chunk = a; if (msc->chunk_offsets[a] < chunk_file_offset && a < (msc->chunk_count-1)) msc->next_chunk ++; - dprintf("Nearest next chunk for stream #%i is #%li @%lli\n", i, msc->next_chunk+1, msc->chunk_offsets[msc->next_chunk]); + dprintf("Nearest next chunk for stream #%i is #%li @%"PRId64"\n", i, msc->next_chunk+1, msc->chunk_offsets[msc->next_chunk]); // Compute sample count and index in the sample_to_chunk table (what a pity) msc->sample_to_chunk_index = 0;