summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index d044d07f41..aca9db2bb9 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -386,6 +386,7 @@ static int mpegps_read_pes_header(AVFormatContext *s,
int i;
for(i=0; i<s->nb_streams; i++){
if(startcode == s->streams[i]->id) {
+ ff_reduce_index(s, i);
av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */);
}
}