diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-31 17:21:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-31 17:21:35 +0100 |
| commit | f45cbb73068321d857249aaa21f770b87493c7c2 (patch) | |
| tree | 9e98c39274a47c0906a79dbb18f067fc9963fb62 /src/lib/ffmpeg_decoder.cc | |
| parent | f385ef03e5ea27519a31c0839447735a7fba0602 (diff) | |
Test filling of stuff with black.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 7 |
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()); +} + |
