summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-31 17:21:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-31 17:21:35 +0100
commitf45cbb73068321d857249aaa21f770b87493c7c2 (patch)
tree9e98c39274a47c0906a79dbb18f067fc9963fb62 /src/lib/ffmpeg_decoder.cc
parentf385ef03e5ea27519a31c0839447735a7fba0602 (diff)
Test filling of stuff with black.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index c148bc530..67587a564 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -615,3 +615,10 @@ FFmpegDecoder::next () const
return _next_video;
}
+
+bool
+FFmpegDecoder::done () const
+{
+ return (!_decode_audio || !_audio_codec_context || audio_done()) && (!_decode_video || video_done());
+}
+