Use optional<> for _video_stream.
[dcpomatic.git] / src / lib / ffmpeg.h
index 43efcf74f456fd031cb900aab1ae3c5d58c65238..d38fd63626359a09c41b79c97d3d39927e2a2bf2 100644 (file)
@@ -72,7 +72,7 @@ protected:
        AVFrame* _frame;
 
        /** Index of video stream within AVFormatContext */
-       int _video_stream;
+       boost::optional<int> _video_stream;
 
        /* It would appear (though not completely verified) that one must have
           a mutex around calls to avcodec_open* and avcodec_close... and here