diff options
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 10 |
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 |