summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-20 18:32:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-20 18:33:37 +0100
commit88c1869afe7076e1e60d08c5458e219601b21e67 (patch)
treed26ecdadef7bcb997c28bde41ecda407d9f957d3
parentbb852f0066880a79002f60589106d531bd698850 (diff)
avcodec/idctdsp: use the 10bit code for 9 bit too
9bit is currently not used Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/idctdsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c
index b4972211de..ae804d999a 100644
--- a/libavcodec/idctdsp.c
+++ b/libavcodec/idctdsp.c
@@ -258,7 +258,7 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
c->idct = ff_j_rev_dct1;
c->perm_type = FF_IDCT_PERM_NONE;
} else {
- if (avctx->bits_per_raw_sample == 10) {
+ if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) {
c->idct_put = ff_simple_idct_put_10;
c->idct_add = ff_simple_idct_add_10;
c->idct = ff_simple_idct_10;