Snap content to reel_split_points.
[dcpomatic.git] / src / wx / video_waveform_plot.cc
index 8c13af7a51f8f98ba5e28a3a737eaacf247e8f55..0dedd9bb1f89555001c28dc6d2f0629770492511 100644 (file)
@@ -27,6 +27,7 @@
 #include <wx/rawbmp.h>
 #include <wx/graphics.h>
 #include <boost/bind.hpp>
+#include <iostream>
 
 using std::cout;
 using std::min;
@@ -136,7 +137,7 @@ VideoWaveformPlot::create_waveform ()
        }
 
        dcp::Size const size = _image->size();
-       _waveform.reset (new Image (PIX_FMT_RGB24, dcp::Size (size.width, size.height), true));
+       _waveform.reset (new Image (AV_PIX_FMT_RGB24, dcp::Size (size.width, size.height), true));
 
        for (int x = 0; x < size.width; ++x) {
 
@@ -165,7 +166,7 @@ VideoWaveformPlot::create_waveform ()
 
        _waveform = _waveform->scale (
                dcp::Size (GetSize().GetWidth() - 32, GetSize().GetHeight() - _vertical_margin * 2),
-               dcp::YUV_TO_RGB_REC709, PIX_FMT_RGB24, false
+               dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_RGB24, false
                );
 }