|
From: Yoda-JM <yo...@us...> - 2010-12-23 14:48:43
|
Module: performous
Branch: master
Commit: 0dad329f57dfa20a5ca67b3c49b41249030b7707
Author: Vincent Le Ligeour <yo...@us...>
Date: Thu Dec 23 15:48:29 2010 +0100
Removed AR problem when decoding video with non-padded width
---
game/ffmpeg.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/ffmpeg.cc b/game/ffmpeg.cc
index 30739c6..7e1d129 100644
--- a/game/ffmpeg.cc
+++ b/game/ffmpeg.cc
@@ -101,7 +101,7 @@ void FFmpeg::open() {
}
// Setup software scaling context for YUV to RGB conversion
if (videoStream != -1 && decodeVideo) {
- width = (pVideoCodecCtx->width+15)&~15;
+ width = pVideoCodecCtx->width;
height = pVideoCodecCtx->height;
img_convert_ctx = sws_getContext(
pVideoCodecCtx->width, pVideoCodecCtx->height, pVideoCodecCtx->pix_fmt,
|