summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2005-05-16 20:49:43 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2005-05-16 20:49:43 +0000
commit34eff91409771aae6ec7fa4c9993299f80b2fbee (patch)
tree1845e988a49f0adb07101578a73e71ad455669b2 /src
parentc9cdd5da5e12ddc2f857a570939e6423d7c9f2c3 (diff)
downloadxine-lib-34eff91409771aae6ec7fa4c9993299f80b2fbee.tar.gz
xine-lib-34eff91409771aae6ec7fa4c9993299f80b2fbee.tar.bz2
**BUGFIX**
Crop according to demuxer width/height. CVS patchset: 7549 CVS date: 2005/05/16 20:49:43
Diffstat (limited to 'src')
-rw-r--r--src/libffmpeg/video_decoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c
index 103ed6eb2..346828d16 100644
--- a/src/libffmpeg/video_decoder.c
+++ b/src/libffmpeg/video_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: video_decoder.c,v 1.48 2005/05/06 04:22:51 tmmm Exp $
+ * $Id: video_decoder.c,v 1.49 2005/05/16 20:49:43 jstembridge Exp $
*
* xine video decoder plugin using ffmpeg
*
@@ -148,10 +148,10 @@ static int get_buffer(AVCodecContext *context, AVFrame *av_frame){
return avcodec_default_get_buffer(context, av_frame);
}
- if((width != context->width) || (height != context->height)) {
+ if((width != this->bih.biWidth) || (height != this->bih.biHeight)) {
if(this->stream->video_out->get_capabilities(this->stream->video_out) & VO_CAP_CROP) {
- this->crop_right = width - context->width;
- this->crop_bottom = height - context->height;
+ this->crop_right = width - this->bih.biWidth;
+ this->crop_bottom = height - this->bih.biHeight;
} else {
xprintf(this->stream->xine, XINE_VERBOSITY_LOG,
_("ffmpeg_video_dec: unsupported frame dimensions, DR1 disabled.\n"));