From: James S. <jst...@us...> - 2003-06-12 18:46:28
|
Update of /cvsroot/xine/xine-lib/src/libffmpeg In directory sc8-pr-cvs1:/tmp/cvs-serv7226 Modified Files: xine_decoder.c Log Message: Disable direct rendering when height or width isn't a multiple of 16. Prevents junk being displayed at the edges of such streams. Index: xine_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/xine_decoder.c,v retrieving revision 1.124 retrieving revision 1.125 diff -u -r1.124 -r1.125 --- xine_decoder.c 11 Jun 2003 23:08:56 -0000 1.124 +++ xine_decoder.c 12 Jun 2003 18:46:24 -0000 1.125 @@ -153,7 +153,8 @@ width = (context->width +align)&~align; height = (context->height+align)&~align; - if( this->context->pix_fmt != PIX_FMT_YUV420P ) { + if( (this->context->pix_fmt != PIX_FMT_YUV420P) || + (width != context->width) || (height != context->height) ) { if (this->stream->xine->verbosity >= XINE_VERBOSITY_LOG) printf("ffmpeg: unsupported frame format, DR1 disabled.\n"); |