summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-01-15 21:10:31 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-01-15 21:10:31 +0000
commitc9ca3cf4ac995d1e7c6ceb33f2d779c50ecec61b (patch)
tree8aef1f7ff2ae6f5e40e6490642296a26f714e46b
parent315de4293f4c4ebe439b541efbd74815247d0767 (diff)
downloadxine-lib-c9ca3cf4ac995d1e7c6ceb33f2d779c50ecec61b.tar.gz
xine-lib-c9ca3cf4ac995d1e7c6ceb33f2d779c50ecec61b.tar.bz2
fix bih values to work with win32 codecsxine-0_9_8-release0.9.8
CVS patchset: 1414 CVS date: 2002/01/15 21:10:31
-rw-r--r--src/demuxers/demux_qt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c
index e6e9972b9..bfbda7a61 100644
--- a/src/demuxers/demux_qt.c
+++ b/src/demuxers/demux_qt.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_qt.c,v 1.18 2002/01/02 18:16:07 jkeil Exp $
+ * $Id: demux_qt.c,v 1.19 2002/01/15 21:10:31 miguelfreitas Exp $
*
* demultiplexer for quicktime streams, based on:
*
@@ -4175,9 +4175,9 @@ static int demux_qt_detect_compressors (demux_qt_t *this) {
this->bih.biWidth = quicktime_video_width (this->qt, 0);
this->bih.biHeight= quicktime_video_height (this->qt, 0);
this->bih.biPlanes= 0;
- this->bih.biCompression=0; /* FIXME */
- this->bih.biBitCount=0;
- this->bih.biSizeImage=0;
+ memcpy( &this->bih.biCompression, video, 4);
+ this->bih.biBitCount= quicktime_video_depth(this->qt, 0);
+ this->bih.biSizeImage=this->bih.biWidth*this->bih.biHeight;
this->bih.biXPelsPerMeter=1;
this->bih.biYPelsPerMeter=1;
this->bih.biClrUsed=0;
@@ -4187,6 +4187,7 @@ static int demux_qt_detect_compressors (demux_qt_t *this) {
this->video_type = fourcc_to_buf_video( video );
+ /* FIXME: do we really need to set biCompression again here? */
if (this->video_type == BUF_VIDEO_CINEPAK) {
this->bih.biCompression=mmioFOURCC('c', 'v', 'i', 'd');
}