]> git.sesse.net Git - nageru/blobdiff - nageru/ffmpeg_capture.h
When creating a fake master card frame, create some fake silence with it.
[nageru] / nageru / ffmpeg_capture.h
index 4cddbfddf757bce77a1f49b6c21b52bd7b57675b..1fc8f7128f516d6b4d06431b3049256f7bbdf7f7 100644 (file)
@@ -329,6 +329,11 @@ private:
        std::string last_subtitle;
 
        movit::RGBTriplet last_neutral_color{1.0f, 1.0f, 1.0f};
+
+       // Used for suppressing repeated warnings. Reset when a video starts playing.
+       // -1 is strictly speaking outside the range of the enum, but hopefully, it will be alright.
+       AVColorSpace last_colorspace = static_cast<AVColorSpace>(-1);
+       AVChromaLocation last_chroma_location = static_cast<AVChromaLocation>(-1);
 };
 
 #endif  // !defined(_FFMPEG_CAPTURE_H)