From: "Ronald S. Bultje" <[email protected]>

These only care about pixel storage unit size, not actual bits
used (i.e. they don't clip).
---
 libavcodec/dsputil.c |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 5ee3072..9653814 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -43,11 +43,7 @@
 
 uint32_t ff_squareTbl[512] = {0, };
 
-#define BIT_DEPTH 9
-#include "dsputil_template.c"
-#undef BIT_DEPTH
-
-#define BIT_DEPTH 10
+#define BIT_DEPTH 16
 #include "dsputil_template.c"
 #undef BIT_DEPTH
 
@@ -2737,10 +2733,8 @@ av_cold void ff_dsputil_init(DSPContext* c, 
AVCodecContext *avctx)
 
     switch (avctx->bits_per_raw_sample) {
     case 9:
-        BIT_DEPTH_FUNCS(9);
-        break;
     case 10:
-        BIT_DEPTH_FUNCS(10);
+        BIT_DEPTH_FUNCS(16);
         break;
     default:
         BIT_DEPTH_FUNCS(8);
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to