From e9ec474224055c5801d67584c37c21f599312b60 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 9 Apr 2002 04:29:05 +0000 Subject: fix to play some streams with bih.biCompression not set CVS patchset: 1699 CVS date: 2002/04/09 04:29:05 --- src/demuxers/demux_avi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index 9cb3a3b77..5202a425e 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_avi.c,v 1.74 2002/04/09 04:14:13 miguelfreitas Exp $ + * $Id: demux_avi.c,v 1.75 2002/04/09 04:29:05 miguelfreitas Exp $ * * demultiplexer for avi streams * @@ -1098,6 +1098,9 @@ static void demux_avi_start (demux_plugin_t *this_gen, buf->size = sizeof (this->avi->bih); this->avi->video_type = fourcc_to_buf_video((void*)&this->avi->bih.biCompression); + + if( !this->avi->video_type ) + this->avi->video_type = fourcc_to_buf_video((void*)&this->avi->compressor); if ( !this->avi->video_type ) { xine_log (this->xine, XINE_LOG_FORMAT, _("demux_avi: unknown video codec '%.4s'\n"), -- cgit v1.2.3