diff --git a/libavformat/mov.c b/libavformat/mov.c index 7ab2808c85..0eb7272830 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4936,7 +4936,7 @@ static int mov_seek_fragment(AVFormatContext *s, AVStream *st, int64_t timestamp for (i = 0; i < mov->fragment_index_count; i++) { if (mov->fragment_index_data[i]->track_id == st->id) { - MOVFragmentIndex *index = index = mov->fragment_index_data[i]; + MOVFragmentIndex *index = mov->fragment_index_data[i]; for (j = index->item_count - 1; j >= 0; j--) { if (index->items[j].time <= timestamp) { if (index->items[j].headers_read)