]> git.sesse.net Git - nageru/blobdiff - mixer.h
Support audio-only FFmpeg inputs. Somewhat wonky, though.
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index 32a1ea476f21547137e680fb13675c80b6b42835..226c91d2e4b0b8957d20d00beafe3fda75c783d8 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -525,7 +525,7 @@ private:
                struct NewFrame {
                        RefCountedFrame frame;
                        int64_t length;  // In TIMEBASE units.
-                       bool interlaced;
+                       bool interlaced, audio_only = false;
                        unsigned field;  // Which field (0 or 1) of the frame to use. Always 0 for progressive.
                        std::function<void()> upload_func;  // Needs to be called to actually upload the texture to OpenGL.
                        unsigned dropped_frames = 0;  // Number of dropped frames before this one.