diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 1e1c29b391..70a7d20b13 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -204,8 +204,9 @@ static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream } if (!ret && timeslen == fileposlen) - for (i = 0; i < fileposlen; i++) - av_add_index_entry(vstream, filepositions[i], times[i]*1000, 0, 0, AVINDEX_KEYFRAME); + for (i = 0; i < fileposlen; i++) + av_add_index_entry(vstream, filepositions[i], times[i]*1000, + 0, 0, AVINDEX_KEYFRAME); else av_log(s, AV_LOG_WARNING, "Invalid keyframes object, skipping.\n");