Mercurial > mplayer.hg
changeset 28986:ced556e1595a
Fix planarCopy to ignore the GRAY8 "pseudo"-palette, fixes libavtest regression test.
author | reimar |
---|---|
date | Sat, 21 Mar 2009 10:20:16 +0000 |
parents | 1edc6f775ff4 |
children | d78fdafe0def |
files | libswscale/swscale.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Sat Mar 21 09:31:57 2009 +0000 +++ b/libswscale/swscale.c Sat Mar 21 10:20:16 2009 +0000 @@ -2118,7 +2118,9 @@ int height= (plane==0 || plane==3) ? srcSliceH: -((-srcSliceH)>>c->chrDstVSubSample); if (!dst[plane]) continue; - if (!src[plane]) + // ignore palette for GRAY8 + if (plane == 1 && !dst[2]) continue; + if (!src[plane] || (plane == 1 && !src[2])) fillPlane(dst[plane], dstStride[plane], length, height, y, (plane==3) ? 255 : 128); else {