summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-07-01 18:53:22 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-07-01 18:53:22 +0000
commite0768bd727a14d9219de4f2445e9db404ceade95 (patch)
tree769e671f7e4a249fc355527e72304cdaf75b7144
parenteccdb21a25ab57ceefd4483762b2e6467cdb989d (diff)
downloadxine-lib-e0768bd727a14d9219de4f2445e9db404ceade95.tar.gz
xine-lib-e0768bd727a14d9219de4f2445e9db404ceade95.tar.bz2
enable playing sorenson mpg4 fourcc
CVS patchset: 2193 CVS date: 2002/07/01 18:53:22
-rw-r--r--src/demuxers/demux_qt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c
index d77afd84d..f6cc1a218 100644
--- a/src/demuxers/demux_qt.c
+++ b/src/demuxers/demux_qt.c
@@ -30,7 +30,7 @@
* build_frame_table
* free_qt_info
*
- * $Id: demux_qt.c,v 1.56 2002/06/20 03:51:49 tmmm Exp $
+ * $Id: demux_qt.c,v 1.57 2002/07/01 18:53:22 miguelfreitas Exp $
*
*/
@@ -1309,6 +1309,12 @@ static int demux_qt_start (demux_plugin_t *this_gen,
this->bih.biCompression = this->qt->video_codec;
this->qt->video_type = fourcc_to_buf_video(this->bih.biCompression);
+
+ /* hack: workaround a fourcc clash! 'mpg4' is used by MS and Sorenson
+ * mpeg4 codecs (they are not compatible).
+ */
+ if( this->qt->video_type == BUF_VIDEO_MSMPEG4_V1 )
+ this->qt->video_type = BUF_VIDEO_MPEG4;
if( !this->qt->video_type )
xine_report_codec( this->xine, XINE_CODEC_VIDEO, this->bih.biCompression, 0, 0);