Support AVFMT_FLAG_IGNIDX in gxf demuxer.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Jun 2010 10:51:06 +0000 (10:51 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Jun 2010 10:51:06 +0000 (10:51 +0000)
Originally committed as revision 23502 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/gxf.c

index ea8a2ff..3798bb7 100644 (file)
@@ -237,6 +237,10 @@ static void gxf_read_index(AVFormatContext *s, int pkt_len) {
     uint32_t map_cnt = get_le32(pb);
     int i;
     pkt_len -= 8;
+    if (s->flags & AVFMT_FLAG_IGNIDX) {
+        url_fskip(pb, pkt_len);
+        return;
+    }
     if (map_cnt > 1000) {
         av_log(s, AV_LOG_ERROR, "too many index entries %u (%x)\n", map_cnt, map_cnt);
         map_cnt = 1000;