From 44b2073259235e5078e177995e9ee8091241f0c4 Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Mon, 16 Apr 2001 01:35:44 +0000 Subject: fixed yuvhack git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@468 b3059339-0415-0410-9bf9-f77b7e298cf2 --- dll_init.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dll_init.c') diff --git a/dll_init.c b/dll_init.c index 2b4aeef371..818a8ed238 100644 --- a/dll_init.c +++ b/dll_init.c @@ -146,6 +146,7 @@ int init_video_codec(){ case IMGFMT_I420: case IMGFMT_IYUV: sh_video->o_bih.biBitCount=12; + break; /* packed format */ case IMGFMT_YUY2: @@ -188,11 +189,8 @@ int init_video_codec(){ sh_video->o_bih.biHeight=-sh_video->bih->biHeight; // flip image! } - // this looks suspicious :-) - if(!(outfmt == IMGFMT_YUY2 && (sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK)) - && (outfmt & IMGFMT_RGB_MASK) != IMGFMT_RGB && (outfmt & IMGFMT_BGR_MASK ) != IMGFMT_BGR) { + if(!(sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK)) sh_video->o_bih.biCompression = outfmt; - } if(verbose) { printf("Starting decompression, format:\n"); @@ -246,7 +244,7 @@ int init_video_codec(){ return 0; } - if(outfmt==IMGFMT_YUY2 && (sh_video->codec->outflags[sh_video->outfmtidx]&CODECS_FLAG_YUVHACK)) + if(sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK) sh_video->o_bih.biCompression = mmioFOURCC('Y','U','Y','2'); // avi_header.our_in_buffer=malloc(avi_header.video.dwSuggestedBufferSize); // FIXME!!!! -- cgit v1.2.3