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/slice.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/slice.c')
-rw-r--r-- | libswscale/slice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/slice.c b/libswscale/slice.c index a7014872c4..0159a739c3 100644 --- a/libswscale/slice.c +++ b/libswscale/slice.c @@ -279,7 +279,7 @@ int ff_init_filters(SwsContext * c) if (need_lum_conv) { res = ff_init_desc_fmt_convert(&c->desc[index], &c->slice[srcIdx], &c->slice[dstIdx], pal); if (res < 0) goto cleanup; - c->desc[index].alpha = c->alpPixBuf != 0; + c->desc[index].alpha = c->needAlpha; ++index; srcIdx = dstIdx; } @@ -288,7 +288,7 @@ int ff_init_filters(SwsContext * c) dstIdx = FFMAX(num_ydesc, num_cdesc); res = ff_init_desc_hscale(&c->desc[index], &c->slice[srcIdx], &c->slice[dstIdx], c->hLumFilter, c->hLumFilterPos, c->hLumFilterSize, c->lumXInc); if (res < 0) goto cleanup; - c->desc[index].alpha = c->alpPixBuf != 0; + c->desc[index].alpha = c->needAlpha; ++index; |