[MPlayer-cvslog] r36237 - trunk/libmpcodecs/vd_ffmpeg.c
reimar
subversion at mplayerhq.hu
Sun May 5 09:27:33 CEST 2013
Author: reimar
Date: Sun May 5 09:27:33 2013
New Revision: 36237
Log:
Update calculation of allocation size for direct rendering.
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Sun May 5 09:27:32 2013 (r36236)
+++ trunk/libmpcodecs/vd_ffmpeg.c Sun May 5 09:27:33 2013 (r36237)
@@ -552,8 +552,8 @@ static int get_buffer(AVCodecContext *av
mp_image_t *mpi=NULL;
int flags= MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE;
int type= MP_IMGTYPE_IPB;
- int width= avctx->width;
- int height= avctx->height;
+ int width = FFMAX(avctx->width, -(-avctx->coded_width >> avctx->lowres));
+ int height= FFMAX(avctx->height, -(-avctx->coded_height >> avctx->lowres));
// special case to handle reget_buffer
if (pic->opaque && pic->data[0] && (!pic->buffer_hints || pic->buffer_hints & FF_BUFFER_HINTS_REUSABLE))
return 0;
More information about the MPlayer-cvslog
mailing list