From 9b3ab50a49677389b31569ce4e16ee8e25a8c85d Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Thu, 12 Jun 2003 18:46:24 +0000 Subject: Disable direct rendering when height or width isn't a multiple of 16. Prevents junk being displayed at the edges of such streams. CVS patchset: 5026 CVS date: 2003/06/12 18:46:24 --- src/libffmpeg/xine_decoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 50ca720be..7a8355c76 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.124 2003/06/11 23:08:56 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.125 2003/06/12 18:46:24 jstembridge Exp $ * * xine decoder plugin using ffmpeg * @@ -153,7 +153,8 @@ static int get_buffer(AVCodecContext *context, AVFrame *av_frame){ 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"); -- cgit v1.2.3