1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-07 22:57:42 +00:00

10l, last commit swapped U and V planes.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19224 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-07-28 17:56:38 +00:00
parent 6ff2c1e486
commit 90e39d65dd

View File

@ -199,10 +199,10 @@ static int demux_avs_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
w, h, w, curr_frame->pitch);
dst += w * h;
w /= 2; h /= 2;
memcpy_pic(dst, curr_frame->vfb->data + curr_frame->offsetU,
memcpy_pic(dst, curr_frame->vfb->data + curr_frame->offsetV,
w, h, w, curr_frame->pitchUV);
dst += w * h;
memcpy_pic(dst, curr_frame->vfb->data + curr_frame->offsetV,
memcpy_pic(dst, curr_frame->vfb->data + curr_frame->offsetU,
w, h, w, curr_frame->pitchUV);
ds_add_packet(demuxer->video, dp);