mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
mxfdec: Zero nb_ptses in mxf_compute_ptses_fake_index()
This fixes SIGSEGV on files with both CBR and VBR index segments (zzuf6.mxf). Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
df2a85085e
commit
d00257e96a
@ -1056,8 +1056,10 @@ static int mxf_compute_ptses_fake_index(MXFContext *mxf, MXFIndexTable *index_ta
|
||||
for (i = 0; i < index_table->nb_segments; i++) {
|
||||
MXFIndexTableSegment *s = index_table->segments[i];
|
||||
|
||||
if (!s->nb_index_entries)
|
||||
if (!s->nb_index_entries) {
|
||||
index_table->nb_ptses = 0;
|
||||
return 0; /* no TemporalOffsets */
|
||||
}
|
||||
|
||||
index_table->nb_ptses += s->index_duration;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user