changeset 20591:ca1d5d9fe51c

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).
author reimar
date Thu, 02 Nov 2006 16:20:25 +0000
parents f6c822443ebe
children a4052461553f
files libmpcodecs/vd_libmpeg2.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Thu Nov 02 11:45:10 2006 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Thu Nov 02 16:20:25 2006 +0000
@@ -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;