summaryrefslogtreecommitdiffstats
path: root/dec_video.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-22 22:45:06 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-22 22:45:06 +0000
commit1caca2af410fa3a1c5784bd8cc162e6c017d2d15 (patch)
tree3fb65df4c07d1855e33e3fb4b8fbecb43fdebbc5 /dec_video.c
parent185101fa408f7a2450254be858b749ace318b0e3 (diff)
downloadmpv-1caca2af410fa3a1c5784bd8cc162e6c017d2d15.tar.bz2
mpv-1caca2af410fa3a1c5784bd8cc162e6c017d2d15.tar.xz
3ivx YV12 direct rendering (one lss memcpy)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2385 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r--dec_video.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/dec_video.c b/dec_video.c
index d19569a7b5..e7c340e7a4 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -1,4 +1,6 @@
+#define USE_XANIM
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -451,8 +453,12 @@ unsigned int t2;
switch(sh_video->codec->driver){
#ifdef USE_XANIM
case VFM_XANIM: {
- int ret=xacodec_decode_frame(start,in_size,sh_video->our_out_buffer,drop_frame?1:0);
- if(ret) blit_frame=3;
+ xacodec_image_t* image=xacodec_decode_frame(start,in_size,drop_frame?1:0);
+ if(image){
+ blit_frame=2;
+ planes=image->planes;
+ stride=image->stride;
+ }
break;
}
#endif