Mercurial > mplayer.hg
changeset 6481:24465b749d2a
report if no palette
author | alex |
---|---|
date | Fri, 21 Jun 2002 16:38:53 +0000 |
parents | 0dcaa477d200 |
children | 528216496060 |
files | libmpcodecs/vf_palette.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_palette.c Fri Jun 21 16:37:37 2002 +0000 +++ b/libmpcodecs/vf_palette.c Fri Jun 21 16:38:53 2002 +0000 @@ -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,