[FFmpeg-cvslog] r26277 - trunk/libavformat/wtv.c

pross subversion
Sun Jan 9 03:42:16 CET 2011


Author: pross
Date: Sun Jan  9 03:42:16 2011
New Revision: 26277

Log:
wtv: only process timestamp_guid chunks for streams that we know about

Modified:
   trunk/libavformat/wtv.c

Modified: trunk/libavformat/wtv.c
==============================================================================
--- trunk/libavformat/wtv.c	Sun Jan  9 03:35:06 2011	(r26276)
+++ trunk/libavformat/wtv.c	Sun Jan  9 03:42:16 2011	(r26277)
@@ -456,6 +456,8 @@ static int parse_chunks(AVFormatContext 
                 consumed += 15;
             }
         } else if (!ff_guidcmp(g, timestamp_guid)) {
+            int stream_index = ff_find_stream_index(s, sid);
+            if (stream_index >= 0) {
             url_fskip(pb, 8);
             wtv->pts = get_le64(pb);
             consumed += 16;
@@ -466,6 +468,7 @@ static int parse_chunks(AVFormatContext 
                 url_fskip(pb, WTV_PAD8(len) - consumed);
                 return 0;
             }
+            }
         } else if (!ff_guidcmp(g, data_guid)) {
             int stream_index = ff_find_stream_index(s, sid);
             if (mode == SEEK_TO_DATA && stream_index >= 0) {



More information about the ffmpeg-cvslog mailing list