From 8ec598ea9d7fb867a92bf56c0951cfb50ab38bca Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Wed, 18 Dec 2002 19:20:33 +0000 Subject: Ignore 'BUF_FLAG_SPECIAL' packets (fixes some QuickTime streams) CVS patchset: 3582 CVS date: 2002/12/18 19:20:33 --- src/libxinevdec/cinepak.c | 4 ++-- src/libxinevdec/msvc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libxinevdec/cinepak.c b/src/libxinevdec/cinepak.c index 1245af8f2..86826b597 100644 --- a/src/libxinevdec/cinepak.c +++ b/src/libxinevdec/cinepak.c @@ -22,7 +22,7 @@ * based on overview of Cinepak algorithm and example decoder * by Tim Ferguson: http://www.csse.monash.edu.au/~timf/ * - * $Id: cinepak.c,v 1.25 2002/12/15 18:44:52 esnel Exp $ + * $Id: cinepak.c,v 1.26 2002/12/18 19:20:33 esnel Exp $ */ #include @@ -422,7 +422,7 @@ static void cvid_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { this->stream->meta_info[XINE_META_INFO_VIDEOCODEC] = strdup("Cinepak"); this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HANDLED] = 1; - } else if (this->decoder_ok) { + } else if (this->decoder_ok && !(buf->decoder_flags & BUF_FLAG_SPECIAL)) { if (this->size + buf->size > this->bufsize) { this->bufsize = this->size + 2 * buf->size; diff --git a/src/libxinevdec/msvc.c b/src/libxinevdec/msvc.c index 8a68e63fe..2c94184a3 100644 --- a/src/libxinevdec/msvc.c +++ b/src/libxinevdec/msvc.c @@ -22,7 +22,7 @@ * based on overview of Microsoft Video-1 algorithm * by Mike Melanson: http://www.pcisys.net/~melanson/codecs/video1.txt * - * $Id: msvc.c,v 1.17 2002/12/06 01:44:06 miguelfreitas Exp $ + * $Id: msvc.c,v 1.18 2002/12/18 19:20:33 esnel Exp $ */ #include @@ -247,7 +247,7 @@ static void msvc_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { this->stream->meta_info[XINE_META_INFO_VIDEOCODEC] = strdup("Microsoft Video-1"); this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HANDLED] = 1; - } else if (this->decoder_ok) { + } else if (this->decoder_ok && !(buf->decoder_flags & BUF_FLAG_SPECIAL)) { if (this->size + buf->size > this->bufsize) { this->bufsize = this->size + 2 * buf->size; -- cgit v1.2.3