mxfdemux: Only pre-set position for exactly the same essence track
The edit rate is only supposed to be the same in a source package, but there might be multiple source packages with the same essence container. As such just comparing the body/index SID is not sufficient.
This commit is contained in:
parent
39aa2aaa39
commit
7ae23d13c8
@ -2762,8 +2762,7 @@ from_index:
|
|||||||
GstMXFDemuxEssenceTrack *t =
|
GstMXFDemuxEssenceTrack *t =
|
||||||
&g_array_index (demux->essence_tracks, GstMXFDemuxEssenceTrack, i);
|
&g_array_index (demux->essence_tracks, GstMXFDemuxEssenceTrack, i);
|
||||||
|
|
||||||
if (index_start_position != -1 && t->body_sid == etrack->body_sid
|
if (index_start_position != -1 && t == etrack)
|
||||||
&& t->index_sid == etrack->index_sid)
|
|
||||||
t->position = index_start_position;
|
t->position = index_start_position;
|
||||||
else
|
else
|
||||||
t->position = (demux->offset == demux->run_in) ? 0 : -1;
|
t->position = (demux->offset == demux->run_in) ? 0 : -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user