From b8548731acb185af3e9f6ce70c3a5f5c45bb3fa1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 24 Jun 2004 13:55:41 +0000 Subject: [PATCH] The subpacket offsets are always stored in LE. --- librmff/rmff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librmff/rmff.c b/librmff/rmff.c index ce1fecae5..c9f63228e 100644 --- a/librmff/rmff.c +++ b/librmff/rmff.c @@ -1464,7 +1464,7 @@ rmff_write_packed_video_frame(rmff_track_t *track, offsets = (uint32_t *)safemalloc(num_subpackets * sizeof(uint32_t)); for (i = 0; i < num_subpackets; i++) { src_ptr += 4; - offsets[i] = rmff_get_uint32_me(src_ptr); + offsets[i] = rmff_get_uint32_le(src_ptr); src_ptr += 4; } if ((offsets[num_subpackets - 1] + (src_ptr - frame->data)) >= frame->size) {