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

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
1991 int index_delta = 1;1991 int index_delta = 1;
1992 int n = s->nb_index_entries;1992 int n = s->nb_index_entries;
1993 1993
1994 if (s->nb_index_entries == 2 * s->index_duration + 1) {1994 if (s->nb_index_entries == 2 * s->index_duration + 1)
1995 index_delta = 2; /* Avid index */1995 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 */
1997 n--;1998 n--;
1998 }
1999 1999
2000 for (j = 0; j < n; j += index_delta, x++) {2000 for (j = 0; j < n; j += index_delta, x++) {
2001 int offset = s->temporal_offset_entries[j] / index_delta;2001 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