diff options
Diffstat (limited to 'libmpcodecs/vd_vfw.c')
-rw-r--r-- | libmpcodecs/vd_vfw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpcodecs/vd_vfw.c b/libmpcodecs/vd_vfw.c index 67df32c862..0fff261a4b 100644 --- a/libmpcodecs/vd_vfw.c +++ b/libmpcodecs/vd_vfw.c @@ -317,6 +317,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ } // export palette: + if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){ if (priv->palette) { mpi->planes[1] = priv->palette; @@ -325,7 +326,8 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ } else mpi->planes[1]=NULL; - + } + return mpi; } #endif |