Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -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; |