[MPlayer-cvslog] r20607 - trunk/libmpcodecs/vd_libmpeg2.c

reimar subversion at mplayerhq.hu
Thu Nov 2 17:20:26 CET 2006


Author: reimar
Date: Thu Nov  2 17:20:25 2006
New Revision: 20607

Modified:
   trunk/libmpcodecs/vd_libmpeg2.c

Log:
Set mpi stride, mostly fixes http://samples.mplayerhq.hu/MPEG2/res_change_ffmpeg_aspect.ts
with e.g. -vo x11 and -vo gl (-vo xv was not affected).


Modified: trunk/libmpcodecs/vd_libmpeg2.c
==============================================================================
--- trunk/libmpcodecs/vd_libmpeg2.c	(original)
+++ trunk/libmpcodecs/vd_libmpeg2.c	Thu Nov  2 17:20:25 2006
@@ -211,6 +211,9 @@
 
 	    if(!mpi_new) return 0; // VO ERROR!!!!!!!!
 	    mpeg2_set_buf(mpeg2dec, mpi_new->planes, mpi_new);
+	    mpi_new->stride[0] = info->sequence->width;
+	    mpi_new->stride[1] = info->sequence->chroma_width;
+	    mpi_new->stride[2] = info->sequence->chroma_width;
 	    if (info->current_picture->flags&PIC_FLAG_TOP_FIELD_FIRST)
 		mpi_new->fields |= MP_IMGFIELD_TOP_FIRST;
 	    else mpi_new->fields &= ~MP_IMGFIELD_TOP_FIRST;



More information about the MPlayer-cvslog mailing list