1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 19:05:33 +00:00

YV12 sliced output fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4032 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-01-07 10:18:30 +00:00
parent 75c0b3169b
commit 95ee0e2713

View File

@ -186,7 +186,7 @@ uint32_t vidix_draw_slice_420(uint8_t *image[], int stride[], int w,int h,int x,
apitch = vidix_play.dest.pitch.v-1;
bespitch = (w + apitch) & ~apitch;
dest = vidix_mem + frames[next_frame] + vidix_play.offset.v;
dest += (bespitch*y + x)/2;
dest += bespitch*y/4 + x;
src = image[1];
for(i=0;i<h/2;i++){
memcpy(dest,src,w/2);
@ -197,7 +197,7 @@ uint32_t vidix_draw_slice_420(uint8_t *image[], int stride[], int w,int h,int x,
bespitch = (w + apitch) & ~apitch;
dest = vidix_mem + frames[next_frame] + vidix_play.offset.u;
dest += (bespitch*y + x)/2;
dest += bespitch*y/4 + x;
src = image[2];
for(i=0;i<h/2;i++){
memcpy(dest,src,w/2);