Browse Source

flvdec: Fix invalid pointer deferences when parsing index

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.9
Laurent Aimar Martin Storsjö 14 years ago
parent
commit
2b4e49d428
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/flvdec.c

+ 2
- 2
libavformat/flvdec.c View File

@@ -196,8 +196,8 @@ static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream
}
}

if (timeslen == fileposlen)
for(i = 0; i < arraylen; i++)
if (!ret && timeslen == fileposlen)
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");


Loading…
Cancel
Save