You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mxfdec: fix essence_offset calculation
The reference point for a KAG is the first byte of the key of a Partition Pack. Fixes ticket #2817. Fixes ticket #5317. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -2875,8 +2875,8 @@ static int mxf_read_header(AVFormatContext *s)
|
|||||||
* for OPAtom we still need the actual essence_offset though (the KL's length can vary)
|
* for OPAtom we still need the actual essence_offset though (the KL's length can vary)
|
||||||
*/
|
*/
|
||||||
int64_t op1a_essence_offset =
|
int64_t op1a_essence_offset =
|
||||||
round_to_kag(mxf->current_partition->this_partition +
|
mxf->current_partition->this_partition +
|
||||||
mxf->current_partition->pack_length, mxf->current_partition->kag_size) +
|
round_to_kag(mxf->current_partition->pack_length, mxf->current_partition->kag_size) +
|
||||||
round_to_kag(mxf->current_partition->header_byte_count, mxf->current_partition->kag_size) +
|
round_to_kag(mxf->current_partition->header_byte_count, mxf->current_partition->kag_size) +
|
||||||
round_to_kag(mxf->current_partition->index_byte_count, mxf->current_partition->kag_size);
|
round_to_kag(mxf->current_partition->index_byte_count, mxf->current_partition->kag_size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user