[MPlayer-cvslog] r30156 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Fri Jan 1 00:39:21 CET 2010


Author: reimar
Date: Fri Jan  1 00:39:21 2010
New Revision: 30156

Log:
Also pass the 4th plane for planar formats on to libavcodec.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Fri Jan  1 00:25:21 2010	(r30155)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Fri Jan  1 00:39:21 2010	(r30156)
@@ -639,6 +639,7 @@ static int get_buffer(AVCodecContext *av
     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 @@ static int get_buffer(AVCodecContext *av
     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 @@ static mp_image_t *decode(sh_video_t *sh
         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])


More information about the MPlayer-cvslog mailing list