mxfdemux: Handle files produced by legacy FFmpeg
authorEdward Hervey <edward@centricular.com>
Thu, 12 May 2022 05:23:29 +0000 (07:23 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 12 May 2022 05:27:57 +0000 (07:27 +0200)
commit7ac4dd3d9d763a58bfff01bc771e1df9e466195f
tree42f23c2034009f423c54353ce41ee60fe215978b
parenta1f30f5b9b54f460aa1472334f03d543c843b6ae
mxfdemux: Handle files produced by legacy FFmpeg

Until March 2022, the FFmpeg MXF muxer would write the various index table
segments with the same instance ID, which should only be used if it is a
duplicate/repeated table.

In order to cope with those, we first compare the other index table segment
properties (body/index SID, start position) before comparing the instance
ID. This will ensure that we don't consider them as duplicate, but can still
detect "real" duplicates (which would have the same other properties).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2407>
subprojects/gst-plugins-bad/gst/mxf/mxfdemux.c