diff options
author | Marton Balint <cus@passwd.hu> | 2022-03-14 19:39:31 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-03-16 21:37:53 +0100 |
commit | ffff5bb740b09dafa75b880b7a1e85a793604623 (patch) | |
tree | 534005c4d9f1c12feb62045555b9a694ee23d425 /libavformat | |
parent | 4afe4a542e9e4c6cf2e89c7ac93da1c2936a1b3d (diff) |
avformat/mxfenc: do not write index tables with the same InstanceUID
Only index tables repeating previous index tables should use the same
InstaceUID. Use the index start position when generating the InstanceUID to fix
this.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index d2e25a8824..8bc1a2807c 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1760,7 +1760,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) // instance id mxf_write_local_tag(s, 16, 0x3C0A); - mxf_write_uuid(pb, IndexTableSegment, 0); + mxf_write_uuid(pb, IndexTableSegment, mxf->last_indexed_edit_unit); // index edit rate mxf_write_local_tag(s, 8, 0x3F0B); |