Mercurial > mplayer.hg
changeset 30114:7470ba76f228
Also pass the 4th plane for planar formats on to libavcodec.
author | reimar |
---|---|
date | Thu, 31 Dec 2009 23:39:21 +0000 |
parents | bb92638cdb86 |
children | ad61464d02a7 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Thu Dec 31 23:25:21 2009 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Thu Dec 31 23:39:21 2009 +0000 @@ -639,6 +639,7 @@ pic->data[0]= mpi->planes[0]; pic->data[1]= mpi->planes[1]; pic->data[2]= mpi->planes[2]; + pic->data[3]= mpi->planes[3]; #if 0 assert(mpi->width >= ((width +align)&(~align))); @@ -663,6 +664,7 @@ pic->linesize[0]= mpi->stride[0]; pic->linesize[1]= mpi->stride[1]; pic->linesize[2]= mpi->stride[2]; + pic->linesize[3]= mpi->stride[3]; pic->opaque = mpi; //printf("%X\n", (int)mpi->planes[0]); @@ -884,9 +886,11 @@ mpi->planes[0]=pic->data[0]; mpi->planes[1]=pic->data[1]; mpi->planes[2]=pic->data[2]; + mpi->planes[3]=pic->data[3]; mpi->stride[0]=pic->linesize[0]; mpi->stride[1]=pic->linesize[1]; mpi->stride[2]=pic->linesize[2]; + mpi->stride[3]=pic->linesize[3]; } if (!mpi->planes[0])