You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mxfdec: fix off by one error.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1077,7 +1077,7 @@ static int mxf_edit_unit_absolute_offset(MXFContext *mxf, MXFIndexTable *index_t
|
|||||||
if (s->nb_index_entries == 2 * s->index_duration + 1)
|
if (s->nb_index_entries == 2 * s->index_duration + 1)
|
||||||
index *= 2; /* Avid index */
|
index *= 2; /* Avid index */
|
||||||
|
|
||||||
if (index < 0 || index > s->nb_index_entries) {
|
if (index < 0 || index >= s->nb_index_entries) {
|
||||||
av_log(mxf->fc, AV_LOG_ERROR, "IndexSID %i segment at %"PRId64" IndexEntryArray too small\n",
|
av_log(mxf->fc, AV_LOG_ERROR, "IndexSID %i segment at %"PRId64" IndexEntryArray too small\n",
|
||||||
index_table->index_sid, s->index_start_position);
|
index_table->index_sid, s->index_start_position);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
Reference in New Issue
Block a user