# HG changeset patch # User arpi # Date 1018229609 0 # Node ID 1b301c326c3bb0881ca72bbeb1ed7ba83f4da01b # Parent 39d4e6b03bcff53c782606cbc15ec5b3ab93b73c relaly black packed yuv images diff -r 39d4e6b03bcf -r 1b301c326c3b libmpcodecs/vf.c --- a/libmpcodecs/vf.c Mon Apr 08 01:26:20 2002 +0000 +++ b/libmpcodecs/vf.c Mon Apr 08 01:33:29 2002 +0000 @@ -105,7 +105,13 @@ } else { if(!mpi->stride[0]) mpi->stride[0]=mpi->width*mpi->bpp/8; if(mpi->flags&MP_IMGFLAG_YUV){ - // TODO: clear packed yuv plane + int size=mpi->bpp*mpi->width*mpi->height/8/4; + unsigned int* p=mpi->planes[0]; + int i; + if(mpi->flags&MP_IMGFLAG_SWAPPED) + for(i=0;iplanes[0],0,mpi->bpp*mpi->width*mpi->height/8); }