aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs/vd_vfw.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vd_vfw.c')
-rw-r--r--libmpcodecs/vd_vfw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpcodecs/vd_vfw.c b/libmpcodecs/vd_vfw.c
index ce752b4a42..337bdfb8dc 100644
--- a/libmpcodecs/vd_vfw.c
+++ b/libmpcodecs/vd_vfw.c
@@ -90,6 +90,11 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
return NULL;
}
+ if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){
+ // export palette:
+ mpi->planes[1]=((unsigned char*)&sh->o_bih)+40;
+ }
+
return mpi;
}