changeset 4750:9657a64f2e12

ffmjpeg yv12 422 fixed
author arpi
date Sun, 17 Feb 2002 20:51:50 +0000
parents fb74b1540900
children 412a67a4bf68
files dec_video.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dec_video.c	Sun Feb 17 20:43:24 2002 +0000
+++ b/dec_video.c	Sun Feb 17 20:51:50 2002 +0000
@@ -1024,6 +1024,10 @@
 		mpi->stride[0]=lavc_picture.linesize[0];
 		mpi->stride[1]=lavc_picture.linesize[1];
 		mpi->stride[2]=lavc_picture.linesize[2];
+		if(lavc_context.pix_fmt==PIX_FMT_YUV422P){
+		    mpi->stride[1]*=2;
+		    mpi->stride[2]*=2;
+		}
 		
 		//stride[1]=stride[2]=0;
 		//stride[0]/=2;