changeset 2682:77a237be71a6

fixed api revision and input fourcc handling (mappings are working too :)
author alex
date Sun, 04 Nov 2001 14:21:44 +0000
parents 7f0862258f4b
children 82403781e13d
files xacodec.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xacodec.c	Sun Nov 04 14:00:53 2001 +0000
+++ b/xacodec.c	Sun Nov 04 14:21:44 2001 +0000
@@ -203,6 +203,15 @@
 {
     long codec_ret;
 
+#if 0
+    /* the brute one */
+    if (codec_driver->dec_func)
+    {
+	codec_hdr->decoder = codec_driver->dec_func;
+	mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "We got decoder's address at init! %p\n", codec_hdr->decoder);
+	return(1);
+    }
+#endif
     codec_ret = codec_driver->iq_func(codec_hdr);
     switch(codec_ret)
     {
@@ -251,11 +260,11 @@
 
     codec_hdr.anim_hdr = malloc(4096);
     codec_hdr.description = vidinfo->codec->info;
-    codec_hdr.compression = bswap_32(vidinfo->format);
+    codec_hdr.compression = bswap_32(vidinfo->bih->biCompression);
     codec_hdr.decoder = NULL;
     codec_hdr.avi_ctab_flag = 0;
     codec_hdr.avi_read_ext = NULL;
-    codec_hdr.xapi_rev = 0x0001;
+    codec_hdr.xapi_rev = XAVID_API_REV;
     codec_hdr.extra = NULL;
     codec_hdr.x = vidinfo->disp_w;
     codec_hdr.y = vidinfo->disp_h;