diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2010-03-14 15:12:25 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2010-03-14 15:12:25 +0000 |
commit | abd0a463dca3cdc98d11c7ff811a9be3099d01cc (patch) | |
tree | 3dee9564a8e7ba68c21c16844af327727b36ce0a /src/combined/ffmpeg | |
parent | 09e2ba368cb0b68e9b91d4b78709c8efa044c538 (diff) | |
parent | 841473467fd19e4fa4e255d9e17af526ecee5ac8 (diff) | |
download | xine-lib-abd0a463dca3cdc98d11c7ff811a9be3099d01cc.tar.gz xine-lib-abd0a463dca3cdc98d11c7ff811a9be3099d01cc.tar.bz2 |
Merge from 1.1.
--HG--
rename : src/libspudec/xine_spu_decoder.c => src/spu_dec/spu_decoder.c
rename : src/libspudec/spu.c => src/spu_dec/spudec.c
rename : src/libspudec/spu.h => src/spu_dec/spudec.h
Diffstat (limited to 'src/combined/ffmpeg')
-rw-r--r-- | src/combined/ffmpeg/ff_video_decoder.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c index aaec97ccd..e6c44f7b5 100644 --- a/src/combined/ffmpeg/ff_video_decoder.c +++ b/src/combined/ffmpeg/ff_video_decoder.c @@ -298,11 +298,6 @@ static void init_video_codec (ff_video_decoder_t *this, unsigned int codec_type) lprintf("lavc decoder found\n"); - /* force (width % 8 == 0), otherwise there will be - * display problems with Xv. - */ - this->bih.biWidth = (this->bih.biWidth + 1) & (~1); - this->context->width = this->bih.biWidth; this->context->height = this->bih.biHeight; this->context->stream_codec_tag = this->context->codec_tag = @@ -1366,7 +1361,7 @@ static void ff_handle_buffer (ff_video_decoder_t *this, buf_element_t *buf) { (this->context->pix_fmt == PIX_FMT_RGB24) || (this->context->pix_fmt == PIX_FMT_PAL8)) { this->output_format = XINE_IMGFMT_YUY2; - init_yuv_planes(&this->yuv, this->bih.biWidth, this->bih.biHeight); + init_yuv_planes(&this->yuv, (this->bih.biWidth + 15) & ~15, this->bih.biHeight); this->yuv_init = 1; } this->cs_convert_init = 1; |