Enable AVFMT_GENERIC_INDEX for Ogg demuxer. This avoids the many
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 23 May 2010 23:33:38 +0000 (23:33 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 23 May 2010 23:33:38 +0000 (23:33 +0000)
seeks needed for binary search when seeking to a previously seen
location.

Originally committed as revision 23279 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/oggdec.c

index f24f697..3161e68 100644 (file)
@@ -642,4 +642,5 @@ AVInputFormat ogg_demuxer = {
     ogg_read_timestamp,
     .extensions = "ogg",
     .metadata_conv = ff_vorbiscomment_metadata_conv,
     ogg_read_timestamp,
     .extensions = "ogg",
     .metadata_conv = ff_vorbiscomment_metadata_conv,
+    .flags = AVFMT_GENERIC_INDEX,
 };
 };