Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 29059:48ba0e64e754
Use MP_MAX_PLANES as size of arrays passed to mpcodecs_draw_slice.
author | reimar |
---|---|
date | Sun, 29 Mar 2009 14:15:09 +0000 |
parents | 6d0da4fd4544 |
children | fb99e3db8f8b |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sun Mar 29 13:47:30 2009 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Mar 29 14:15:09 2009 +0000 @@ -451,7 +451,7 @@ AVFrame *src, int offset[4], int y, int type, int height){ sh_video_t *sh = s->opaque; - uint8_t *source[3]= {src->data[0] + offset[0], src->data[1] + offset[1], src->data[2] + offset[2]}; + uint8_t *source[MP_MAX_PLANES]= {src->data[0] + offset[0], src->data[1] + offset[1], src->data[2] + offset[2]}; #if 0 int start=0, i; int width= s->width;