]> git.sesse.net Git - nageru/blobdiff - nageru/flags.cpp
Add support for 10-bit AV1 encoding.
[nageru] / nageru / flags.cpp
index 1878038a46fb58ed2bc39b9e2a0994169c0bd2c0..7cc52b7f7fe1a055a893b9816489e9925ce4c1bb 100644 (file)
@@ -618,6 +618,7 @@ void parse_flags(Program program, int argc, char * const argv[])
                case OPTION_10_BIT_OUTPUT:
                        global_flags.ten_bit_output = true;
                        global_flags.x264_bit_depth = 10;
+                       global_flags.av1_bit_depth = 10;
                        break;
                case OPTION_INPUT_YCBCR_INTERPRETATION: {
                        char *ptr = strchr(optarg, ',');
@@ -698,10 +699,7 @@ void parse_flags(Program program, int argc, char * const argv[])
        }
        if (global_flags.ten_bit_output) {
                global_flags.x264_video_to_disk = true;  // No 10-bit Quick Sync support.
-               if (global_flags.av1_video_to_http) {
-                       fprintf(stderr, "ERROR: 10-bit AV1 output is not supported yet\n");
-                       exit(1);
-               } else {
+               if (!global_flags.av1_video_to_http) {
                        global_flags.x264_video_to_http = true;
                }
        }