The subpacket offsets are always stored in LE.

This commit is contained in:
Moritz Bunkus 2004-06-24 13:55:41 +00:00
parent b6aaf4c104
commit b8548731ac

View File

@ -1464,7 +1464,7 @@ rmff_write_packed_video_frame(rmff_track_t *track,
offsets = (uint32_t *)safemalloc(num_subpackets * sizeof(uint32_t)); offsets = (uint32_t *)safemalloc(num_subpackets * sizeof(uint32_t));
for (i = 0; i < num_subpackets; i++) { for (i = 0; i < num_subpackets; i++) {
src_ptr += 4; src_ptr += 4;
offsets[i] = rmff_get_uint32_me(src_ptr); offsets[i] = rmff_get_uint32_le(src_ptr);
src_ptr += 4; src_ptr += 4;
} }
if ((offsets[num_subpackets - 1] + (src_ptr - frame->data)) >= frame->size) { if ((offsets[num_subpackets - 1] + (src_ptr - frame->data)) >= frame->size) {