diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-16 19:26:30 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-16 19:26:30 +0000 |
commit | 539d77e8920008460063ac92f6cc31b3b58bab07 (patch) | |
tree | 7567945f244ca2110580370767b6d1fd5170bd7b /libmpcodecs/vd_libmpeg2.c | |
parent | 2e89c76a2cc407f13b6579d18a2e8cb63776e622 (diff) | |
download | mpv-539d77e8920008460063ac92f6cc31b3b58bab07.tar.bz2 mpv-539d77e8920008460063ac92f6cc31b3b58bab07.tar.xz |
10l. use mpcodecs_draw_slice, instead of libvo directly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7757 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_libmpeg2.c')
-rw-r--r-- | libmpcodecs/vd_libmpeg2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmpcodecs/vd_libmpeg2.c b/libmpcodecs/vd_libmpeg2.c index 1be958773b..3f89c333bd 100644 --- a/libmpcodecs/vd_libmpeg2.c +++ b/libmpcodecs/vd_libmpeg2.c @@ -91,14 +91,13 @@ static void uninit(sh_video_t *sh){ } static void draw_slice (vo_frame_t * frame, uint8_t ** src){ - vo_functions_t * output = frame->vo; int stride[3]; int y=picture->slice<<4; stride[0]=picture->coded_picture_width; stride[1]=stride[2]=stride[0]/2; - output->draw_slice (src, + mpcodecs_draw_slice(frame->vo, src, stride, picture->display_picture_width, (y+16<=picture->display_picture_height) ? 16 : picture->display_picture_height-y, @@ -205,7 +204,7 @@ static mp_image_t* parse_chunk (sh_video_t* sh, int code, uint8_t * buffer, int mpi, (mpi->flags&MP_IMGFLAG_DIRECT)?"DR!":""); } - picture->current_frame->vo=sh->video_out; + picture->current_frame->vo=sh; picture->slice=0; } |