[FFmpeg-cvslog] r23502 - trunk/libavformat/gxf.c

reimar subversion
Sun Jun 6 12:51:06 CEST 2010


Author: reimar
Date: Sun Jun  6 12:51:06 2010
New Revision: 23502

Log:
Support AVFMT_FLAG_IGNIDX in gxf demuxer.

Modified:
   trunk/libavformat/gxf.c

Modified: trunk/libavformat/gxf.c
==============================================================================
--- trunk/libavformat/gxf.c	Sun Jun  6 02:05:12 2010	(r23501)
+++ trunk/libavformat/gxf.c	Sun Jun  6 12:51:06 2010	(r23502)
@@ -237,6 +237,10 @@ static void gxf_read_index(AVFormatConte
     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;



More information about the ffmpeg-cvslog mailing list