]> git.sesse.net Git - nageru/blobdiff - nageru/quicksync_encoder.cpp
Fix a wrong assertion.
[nageru] / nageru / quicksync_encoder.cpp
index eb144ceb2512f70044e5ae55d9b17b6e77ee4135..a094498db1fa4cf1c6044fe71f642abe7af50e28 100644 (file)
@@ -1449,12 +1449,9 @@ QuickSyncEncoderImpl::QuickSyncEncoderImpl(const std::string &filename, Resource
 
        if (global_flags.x264_video_to_http || global_flags.x264_video_to_disk) {
                assert(x264_http_encoder != nullptr);
-       } else {
-               assert(x264_http_encoder == nullptr);
-       }
-       if (global_flags.x264_separate_disk_encode) {
                assert(x264_disk_encoder != nullptr);
        } else {
+               assert(x264_http_encoder == nullptr);
                assert(x264_disk_encoder == nullptr);
        }