summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-03-26 17:00:21 +0200
committerMartin Storsjö <martin@martin.st>2013-04-19 23:29:22 +0300
commitc443117f25e034c1e3ef35334b61b937e1e208ff (patch)
tree4f5856e6a47c58687cbe08863ea4486f313e7ad0 /libavcodec/dsputil.c
parent54cd5e4f92de6bd0fb8e24069153b0156c8136bc (diff)
dsputil: Remove dct_bits
dct_bits is never set except in h264, where it is never used, thus remove it. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 708fbd9835..999b133bdf 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -2736,18 +2736,10 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
switch (avctx->bits_per_raw_sample) {
case 9:
- if (c->dct_bits == 32) {
- BIT_DEPTH_FUNCS(9, _32);
- } else {
- BIT_DEPTH_FUNCS(9, _16);
- }
+ BIT_DEPTH_FUNCS(9, _16);
break;
case 10:
- if (c->dct_bits == 32) {
- BIT_DEPTH_FUNCS(10, _32);
- } else {
- BIT_DEPTH_FUNCS(10, _16);
- }
+ BIT_DEPTH_FUNCS(10, _16);
break;
default:
BIT_DEPTH_FUNCS(8, _16);