wtv: ignore empty data_guid chunks
authorPeter Ross <pross@xvid.org>
Sun, 13 Feb 2011 03:42:49 +0000 (14:42 +1100)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 13 Feb 2011 21:49:39 +0000 (16:49 -0500)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/wtv.c

index 7a8e8f5..b74a36c 100644 (file)
@@ -892,7 +892,7 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p
             }
         } else if (!ff_guidcmp(g, data_guid)) {
             int stream_index = ff_find_stream_index(s, sid);
-            if (mode == SEEK_TO_DATA && stream_index >= 0) {
+            if (mode == SEEK_TO_DATA && stream_index >= 0 && len > 32) {
                 WtvStream *wst = s->streams[stream_index]->priv_data;
                 wst->seen_data = 1;
                 if (len_ptr) {