diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-23 13:17:03 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-23 13:17:03 +0000 |
commit | 812b86ae81305dff99695de064552d0bbede4aaf (patch) | |
tree | 192d4a392004b2eacd70d164051347da14869b86 /libvo | |
parent | f43150759d2133c51607d02972358574f21e4ddb (diff) | |
download | mpv-812b86ae81305dff99695de064552d0bbede4aaf.tar.bz2 mpv-812b86ae81305dff99695de064552d0bbede4aaf.tar.xz |
Use the new Y8 support in place of YV12.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6523 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_aa.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c index 6e5008b25e..51a64b4ef9 100644 --- a/libvo/vo_aa.c +++ b/libvo/vo_aa.c @@ -120,18 +120,16 @@ resize(void){ screen_y = (aa_scrheight(c) - screen_h) / 2; if(sws) freeSwsContext(sws); - // Use YV12 while Y8/Y800 isn't avaible as sws output :-( sws = getSwsContextFromCmdLine(src_width,src_height,image_format, - image_width,image_height,IMGFMT_YV12); + image_width,image_height,IMGFMT_Y8); image[0] = aa_image(c) + image_y * image_width + image_x; image[1] = NULL; - // Allocate the V plan for YV12 - image[2] = realloc(image[2], image_width * image_height / 4); + image[2] = NULL; image_stride[0] = image_width; image_stride[1] = 0; - image_stride[2] = image_width / 2; + image_stride[2] = 0; showosdmessage=0; @@ -528,7 +526,6 @@ uninit(void) { } #endif aa_close(c); - if(image[2]) free(image[2]); } #ifdef USE_OSD |