[FFmpeg-soc] [soc]: r4391 - seek_api/mpeg.c
spyfeng
subversion at mplayerhq.hu
Mon Jun 8 15:23:41 CEST 2009
Author: spyfeng
Date: Mon Jun 8 15:23:40 2009
New Revision: 4391
Log:
fix the wrong usage for AVFMT_GENERIC_INDEX
Modified:
seek_api/mpeg.c
Modified: seek_api/mpeg.c
==============================================================================
--- seek_api/mpeg.c Mon Jun 8 06:02:12 2009 (r4390)
+++ seek_api/mpeg.c Mon Jun 8 15:23:40 2009 (r4391)
@@ -391,7 +391,7 @@ static int mpegps_read_pes_header(AVForm
if(startcode == s->streams[i]->id &&
!url_is_streamed(s->pb) /* index useless on streams anyway */) {
ff_reduce_index(s, i);
- av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVFMT_GENERIC_INDEX /* FIXME keyframe? */);
+ av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, 0 /* FIXME keyframe? */);
}
}
}
@@ -792,6 +792,6 @@ AVInputFormat mpegps_demuxer = {
NULL,
NULL, //mpegps_read_seek,
mpegps_read_dts,
- .flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
+ .flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT|AVFMT_GENERIC_INDEX,
.read_seek2 = mpegps_read_seek1,
};
More information about the FFmpeg-soc
mailing list