summaryrefslogtreecommitdiff
path: root/libavcodec/avdct.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-12 16:21:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-15 18:25:00 +0100
commit1307c11ce6233867fa8c2da968c102c06496efea (patch)
tree48c1b76976ba3c41679efc31a511c47523e57aa6 /libavcodec/avdct.c
parentc1d9283b1e4b3b90d5064e0f1cc29a94aa73cda9 (diff)
avcodec/avdct: support >8bit per sample dcts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avdct.c')
-rw-r--r--libavcodec/avdct.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c
index a01a6b767a..f92c691adb 100644
--- a/libavcodec/avdct.c
+++ b/libavcodec/avdct.c
@@ -63,6 +63,8 @@ static const AVOption avdct_options[] = {
{"xvidmmx", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_XVID }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"faani", "floating point AAN IDCT (experimental / for debugging)", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_FAAN }, INT_MIN, INT_MAX, V|D|E, "idct"},
{"simpleauto", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEAUTO }, INT_MIN, INT_MAX, V|E|D, "idct"},
+
+{"bits_per_sample", "", OFFSET(bits_per_sample), AV_OPT_TYPE_INT, {.i64 = 8 }, 0, 14, 0,},
{NULL},
};
@@ -99,6 +101,7 @@ int avcodec_dct_init(AVDCT *dsp)
avctx->idct_algo = dsp->idct_algo;
avctx->dct_algo = dsp->dct_algo;
+ avctx->bits_per_raw_sample = dsp->bits_per_sample;
#define COPY(src, name) memcpy(&dsp->name, &src.name, sizeof(dsp->name))