[FFmpeg-cvslog] avcodec/idctdsp: use the 10bit code for 9 bit too
Michael Niedermayer
git at videolan.org
Sat Dec 20 18:52:08 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 20 18:32:50 2014 +0100| [88c1869afe7076e1e60d08c5458e219601b21e67] | committer: Michael Niedermayer
avcodec/idctdsp: use the 10bit code for 9 bit too
9bit is currently not used
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88c1869afe7076e1e60d08c5458e219601b21e67
---
libavcodec/idctdsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c
index b497221..ae804d9 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;
More information about the ffmpeg-cvslog
mailing list