mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
The subpacket offsets are always stored in LE.
This commit is contained in:
parent
b6aaf4c104
commit
b8548731ac
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user