[MPlayer-cvslog] r30114 - trunk/libmpcodecs/vf_palette.c
reimar
subversion at mplayerhq.hu
Sat Dec 26 12:11:42 CET 2009
Author: reimar
Date: Sat Dec 26 12:11:41 2009
New Revision: 30114
Log:
Restore the old value of planes[1] in vf_palette at the end to ensure
we do not call free() on the fixed gray_pal array.
Modified:
trunk/libmpcodecs/vf_palette.c
Modified: trunk/libmpcodecs/vf_palette.c
==============================================================================
--- trunk/libmpcodecs/vf_palette.c Sat Dec 26 03:35:36 2009 (r30113)
+++ trunk/libmpcodecs/vf_palette.c Sat Dec 26 12:11:41 2009 (r30114)
@@ -76,6 +76,7 @@ static int config(struct vf_instance_s*
static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
mp_image_t *dmpi;
+ uint8_t *old_palette = mpi->planes[1];
// hope we'll get DR buffer:
dmpi=vf_get_image(vf->next,vf->priv->fmt,
@@ -152,6 +153,7 @@ static int put_image(struct vf_instance_
}
}
}
+ mpi->planes[1] = old_palette;
return vf_next_put_image(vf,dmpi, pts);
}
More information about the MPlayer-cvslog
mailing list