]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264chroma.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / h264chroma.c
index 31004a597ba10301164f34901a12bbc7cb1eeaea..3b780a04e236850f9469cc9212a5ef12a93f9766 100644 (file)
 #include "h264chroma_template.c"
 #undef BIT_DEPTH
 
-#define BIT_DEPTH 9
-#include "h264chroma_template.c"
-#undef BIT_DEPTH
-
-#define BIT_DEPTH 10
+#define BIT_DEPTH 16
 #include "h264chroma_template.c"
 #undef BIT_DEPTH
 
 
 void ff_h264chroma_init(H264ChromaContext *c, int bit_depth)
 {
-    switch (bit_depth) {
-    case 10:
-        SET_CHROMA(10);
-        break;
-    case 9:
-        SET_CHROMA(9);
-        break;
-    default:
+    if (bit_depth > 8 && bit_depth <= 16) {
+        SET_CHROMA(16);
+    } else {
         SET_CHROMA(8);
-        break;
     }
 
     if (ARCH_ARM)