History

avformat/mxfdec: support Avid files with an extra index entry

Marton Balint committed 3 years ago

Commit 41dfa621 parent 6aff3c51 file · +3 −3Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/mxfdec.c+3−3
@@ -1991,11 +1991,11 @@ static int mxf_compute_ptses_fake_index(MXFContext *mxf, MXFIndexTable *index_ta · 1990 unmodified lines
19911991 int index_delta = 1;
19921992 int n = s->nb_index_entries;
19931993
1994− if (s->nb_index_entries == 2 * s->index_duration + 1) {
1994+ if (s->nb_index_entries == 2 * s->index_duration + 1)
19951995 index_delta = 2; /* Avid index */
1996− /* ignore the last entry - it's the size of the essence container */
1996+ if (s->nb_index_entries == index_delta * s->index_duration + 1)
1997+ /* ignore the last entry - it's the size of the essence container in Avid */
19971998 n--;
1998− }
19991999
20002000 for (j = 0; j < n; j += index_delta, x++) {
20012001 int offset = s->temporal_offset_entries[j] / index_delta;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t