diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-06-12 18:46:24 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-06-12 18:46:24 +0000 |
commit | 9b3ab50a49677389b31569ce4e16ee8e25a8c85d (patch) | |
tree | f6bb703337348426affb1e0969b44712d9dfdd38 /src | |
parent | 04dd7cc6866e3946cae1c3ad1b3b221ed8a27930 (diff) | |
download | xine-lib-9b3ab50a49677389b31569ce4e16ee8e25a8c85d.tar.gz xine-lib-9b3ab50a49677389b31569ce4e16ee8e25a8c85d.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/libffmpeg/xine_decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
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"); |