]> git.sesse.net Git - nageru/commitdiff
Fix some compiler warnings.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 24 Mar 2018 16:31:57 +0000 (17:31 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 24 Mar 2018 16:31:57 +0000 (17:31 +0100)
json.proto
mixer.cpp
quicksync_encoder.cpp

index ae10a7fa0771dc4d9729d054b7bf8d4899ed68e5..55e642afaebb9739b65da9dc1e47731ff720c4d5 100644 (file)
@@ -1,6 +1,8 @@
 // Messages used to produce JSON (it's the simplest way we can create valid
 // JSON without pulling in an external JSON library).
 
+syntax = "proto2";
+
 message Channels {
        repeated Channel channel = 1;
 }
index b3e95a7be5ec97782e398df22743d5d78fad1f6f..0b4a8fe5a823b6ca9651127dca35a8ea9a1d3c41 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -157,6 +157,8 @@ void ensure_texture_resolution(PBOFrameAllocator::Userdata *userdata, unsigned f
                        }
                        check_error();
                        break;
+               default:
+                       assert(false);
                }
                userdata->last_width[field] = width;
                userdata->last_height[field] = height;
index 8761d56ac88903f39b481030171817acb81b382a..068e2d416dc3fe3b2c1ccdebcfc6ab97244fe82e 100644 (file)
@@ -82,6 +82,7 @@ std::atomic<int64_t> metric_quick_sync_stalled_frames{0};
         exit(1);                                                        \
     }
 
+#undef BUFFER_OFFSET
 #define BUFFER_OFFSET(i) ((char *)NULL + (i))
 
 //#include "loadsurface.h"
@@ -763,7 +764,7 @@ void QuickSyncEncoderImpl::va_close_display(VADisplay va_dpy)
 
 int QuickSyncEncoderImpl::init_va(const string &va_display)
 {
-    VAProfile profile_list[]={VAProfileH264High, VAProfileH264Main, VAProfileH264Baseline, VAProfileH264ConstrainedBaseline};
+    VAProfile profile_list[]={VAProfileH264High, VAProfileH264Main, VAProfileH264ConstrainedBaseline};
     VAEntrypoint *entrypoints;
     int num_entrypoints, slice_entrypoint;
     int support_encode = 0;    
@@ -806,11 +807,6 @@ int QuickSyncEncoderImpl::init_va(const string &va_display)
         exit(1);
     } else {
         switch (h264_profile) {
-            case VAProfileH264Baseline:
-                ip_period = 1;
-                constraint_set_flag |= (1 << 0); /* Annex A.2.1 */
-                h264_entropy_mode = 0;
-                break;
             case VAProfileH264ConstrainedBaseline:
                 constraint_set_flag |= (1 << 0 | 1 << 1); /* Annex A.2.2 */
                 ip_period = 1;
@@ -824,7 +820,7 @@ int QuickSyncEncoderImpl::init_va(const string &va_display)
                 constraint_set_flag |= (1 << 3); /* Annex A.2.4 */
                 break;
             default:
-                h264_profile = VAProfileH264Baseline;
+                h264_profile = VAProfileH264ConstrainedBaseline;
                 ip_period = 1;
                 constraint_set_flag |= (1 << 0); /* Annex A.2.1 */
                 break;