mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Better placed and more debug output for the Quicktime/MP4 reader.
This commit is contained in:
parent
dad4cb8b57
commit
60b5d0bfea
@ -751,14 +751,15 @@ qtmp4_reader_c::handle_stco_atom(qtmp4_demuxer_ptr &new_dmx,
|
|||||||
io->skip(1 + 3); // version & flags
|
io->skip(1 + 3); // version & flags
|
||||||
count = io->read_uint32_be();
|
count = io->read_uint32_be();
|
||||||
|
|
||||||
|
mxverb(2, PFX "%*sChunk offset table: %u entries\n", level * 2, "", count);
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
qt_chunk_t chunk;
|
qt_chunk_t chunk;
|
||||||
|
|
||||||
chunk.pos = io->read_uint32_be();
|
chunk.pos = io->read_uint32_be();
|
||||||
new_dmx->chunk_table.push_back(chunk);
|
new_dmx->chunk_table.push_back(chunk);
|
||||||
|
mxverb(3, PFX "%*s %lld\n", level * 2, "", chunk.pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
mxverb(2, PFX "%*sChunk offset table: %u entries\n", level * 2, "", count);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -770,15 +771,16 @@ qtmp4_reader_c::handle_co64_atom(qtmp4_demuxer_ptr &new_dmx,
|
|||||||
io->skip(1 + 3); // version & flags
|
io->skip(1 + 3); // version & flags
|
||||||
count = io->read_uint32_be();
|
count = io->read_uint32_be();
|
||||||
|
|
||||||
|
mxverb(2, PFX "%*s64bit chunk offset table: %u entries\n", level * 2, "",
|
||||||
|
count);
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
qt_chunk_t chunk;
|
qt_chunk_t chunk;
|
||||||
|
|
||||||
chunk.pos = io->read_uint64_be();
|
chunk.pos = io->read_uint64_be();
|
||||||
new_dmx->chunk_table.push_back(chunk);
|
new_dmx->chunk_table.push_back(chunk);
|
||||||
|
mxverb(3, PFX "%*s %lld\n", level * 2, "", chunk.pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
mxverb(2, PFX "%*s64bit chunk offset table: %u entries\n", level * 2, "",
|
|
||||||
count);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1246,6 +1248,8 @@ qtmp4_reader_c::read(generic_packetizer_c *ptzr,
|
|||||||
frame_size += dmx->esds.decoder_config_len;
|
frame_size += dmx->esds.decoder_config_len;
|
||||||
} else {
|
} else {
|
||||||
buffer = (unsigned char *)safemalloc(frame_size);
|
buffer = (unsigned char *)safemalloc(frame_size);
|
||||||
|
mxverb(4, "qtmp4_reader_c::read 2: %u bytes from %lld\n", frame_size,
|
||||||
|
dmx->sample_table[frame].pos);
|
||||||
io->setFilePointer(dmx->sample_table[frame].pos);
|
io->setFilePointer(dmx->sample_table[frame].pos);
|
||||||
if (io->read(buffer, frame_size) != frame_size) {
|
if (io->read(buffer, frame_size) != frame_size) {
|
||||||
mxwarn(PFX "Could not read chunk number %u/%u with size %u from "
|
mxwarn(PFX "Could not read chunk number %u/%u with size %u from "
|
||||||
|
Loading…
Reference in New Issue
Block a user