[FFmpeg-cvslog] wtv: ignore empty data_guid chunks

Peter Ross git
Tue Feb 15 00:59:10 CET 2011


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sun Feb 13 14:42:49 2011 +1100| [e590448c65b7f9cd1a9bcf39ee6874882034edc9] | committer: Michael Niedermayer

wtv: ignore empty data_guid chunks

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
(cherry picked from commit 1a973feb45826a1998b4286ecfe1fa7a602b8780)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e590448c65b7f9cd1a9bcf39ee6874882034edc9
---

 libavformat/wtv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index 7a8e8f5..b74a36c 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -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) {




More information about the ffmpeg-cvslog mailing list