Update of /cvsroot/mplayer/main/libmpcodecs In directory mail:/var/tmp.root/cvs-serv32050 Modified Files: vf_palette.c Log Message: report if no palette Index: vf_palette.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_palette.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- vf_palette.c 30 May 2002 00:26:23 -0000 1.3 +++ vf_palette.c 21 Jun 2002 16:38:53 -0000 1.4 @@ -69,6 +69,12 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ mp_image_t *dmpi; + + if (!mpi->planes[1]) + { + mp_msg(MSGT_VFILTER,MSGL_V,"[%s] no palette given\n",vf->info->name); + return; + } // hope we'll get DR buffer: dmpi=vf_get_image(vf->next,vf->priv->fmt,
participants (1)
-
Alex Beregszaszi