summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-25 00:07:59 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-25 00:07:59 +0000
commit1a089681fc7b66bd6dadc76b98be0d1364004c79 (patch)
tree09540852296480b718dc3dea35494928948c7ef4 /libmpcodecs
parente313dd3b4d5f931bc1c72033a967c2dab9aa2515 (diff)
downloadmpv-1a089681fc7b66bd6dadc76b98be0d1364004c79.tar.bz2
mpv-1a089681fc7b66bd6dadc76b98be0d1364004c79.tar.xz
vf_palette: Fix compilation after libswscale API changes
Patch from Guillaume Poirier. I didn't test the functionality of the filter but at least it fixes compilation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27822 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_palette.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libmpcodecs/vf_palette.c b/libmpcodecs/vf_palette.c
index 70b4379759..ece59b2cac 100644
--- a/libmpcodecs/vf_palette.c
+++ b/libmpcodecs/vf_palette.c
@@ -108,15 +108,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
break;
case 24:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8tobgr24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ palette8topacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
else
- palette8torgb24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ palette8topacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
break;
case 32:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8tobgr32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ palette8topacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
else
- palette8torgb32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ palette8topacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
break;
}
} else {
@@ -139,15 +139,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
break;
case 24:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8tobgr24(src,dst,mpi->w,mpi->planes[1]);
+ palette8topacked24(src,dst,mpi->w,mpi->planes[1]);
else
- palette8torgb24(src,dst,mpi->w,mpi->planes[1]);
+ palette8topacked24(src,dst,mpi->w,mpi->planes[1]);
break;
case 32:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8tobgr32(src,dst,mpi->w,mpi->planes[1]);
+ palette8topacked32(src,dst,mpi->w,mpi->planes[1]);
else
- palette8torgb32(src,dst,mpi->w,mpi->planes[1]);
+ palette8topacked32(src,dst,mpi->w,mpi->planes[1]);
break;
}
}