summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-06-09 21:09:58 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-06-09 21:09:58 +0000
commitc2c9a00664b9d2935a2b160e6d44357efd8563fb (patch)
treeb8cfada59ecc231ad68d768040877e339e9d5d13
parent7efb80184a1a3ee54816aadc71def1687ed0f109 (diff)
downloadxine-lib-c2c9a00664b9d2935a2b160e6d44357efd8563fb.tar.gz
xine-lib-c2c9a00664b9d2935a2b160e6d44357efd8563fb.tar.bz2
fix "tilting" problem
CVS patchset: 2050 CVS date: 2002/06/09 21:09:58
-rw-r--r--src/libffmpeg/xine_decoder.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index b5a5ace70..f5f351af2 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.40 2002/06/07 02:40:46 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.41 2002/06/09 21:09:58 miguelfreitas Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -149,11 +149,16 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
printf ("ffmpeg: couldn't find decoder\n");
return;
}
-
+
+ /* force (width % 8 == 0), otherwise there will be
+ * display problems with Xv.
+ */
+ this->bih.biWidth = (this->bih.biWidth + 7) & (~7);
+
memset(&this->context, 0, sizeof(this->context));
this->context.width = this->bih.biWidth;
this->context.height = this->bih.biHeight;
-
+
if (avcodec_open (&this->context, codec) < 0) {
printf ("ffmpeg: couldn't open decoder\n");
return;