Merge.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index c148bc530c7cf8f84fb342a9b3aff8aafbfd2c3b..1d000b62bc3d210f3fdbbb26e4adea73553d71be 100644 (file)
@@ -31,7 +31,6 @@
 #include <stdint.h>
 #include <boost/lexical_cast.hpp>
 extern "C" {
-#include <tiffio.h>
 #include <libavcodec/avcodec.h>
 #include <libavformat/avformat.h>
 #include <libswscale/swscale.h>
@@ -615,3 +614,10 @@ FFmpegDecoder::next () const
 
        return _next_video;
 }
+
+bool
+FFmpegDecoder::done () const
+{
+       return (!_decode_audio || !_audio_codec_context || audio_done()) && (!_decode_video || video_done());
+}
+