diff options
author | Pedro Arthur <bygrandao@gmail.com> | 2016-03-28 13:25:18 -0300 |
---|---|---|
committer | Pedro Arthur <bygrandao@gmail.com> | 2016-03-31 16:36:16 -0300 |
commit | 6de58b49032a206985602effec91e5e46c886ea2 (patch) | |
tree | b2cb42b6aa9f0993d23a001c10162b02f1895210 /libswscale/vscale.c | |
parent | 3b905b9fe611efb3282aa4c5c659e1870d91a83b (diff) | |
download | ffmpeg-6de58b49032a206985602effec91e5e46c886ea2.tar.gz |
swscale: cleanup unused code
Removed previous swscale code under '#ifndef NEW_FILTER'
and removed unused fields of SwsContext
Diffstat (limited to 'libswscale/vscale.c')
-rw-r--r-- | libswscale/vscale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/vscale.c b/libswscale/vscale.c index 72f799de1a..72352dedb3 100644 --- a/libswscale/vscale.c +++ b/libswscale/vscale.c @@ -218,7 +218,7 @@ int ff_init_vscale(SwsContext *c, SwsFilterDescriptor *desc, SwsSlice *src, SwsS desc[0].instance = lumCtx; desc[0].src = src; desc[0].dst = dst; - desc[0].alpha = c->alpPixBuf != 0; + desc[0].alpha = c->needAlpha; if (!isGray(c->dstFormat)) { chrCtx = av_mallocz(sizeof(VScalerContext)); @@ -239,7 +239,7 @@ int ff_init_vscale(SwsContext *c, SwsFilterDescriptor *desc, SwsSlice *src, SwsS desc[0].instance = lumCtx; desc[0].src = src; desc[0].dst = dst; - desc[0].alpha = c->alpPixBuf != 0; + desc[0].alpha = c->needAlpha; } ff_init_vscale_pfn(c, c->yuv2plane1, c->yuv2planeX, c->yuv2nv12cX, |