diff options
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index e154aac5d..6f5d63358 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -320,7 +320,11 @@ Decoder::process_video (AVFrame* frame) void Decoder::repeat_last_video () { - assert (_last_image); + if (!_last_image) { + _last_image.reset (new CompactImage (pixel_format(), native_size())); + _last_image->make_black (); + } + Video (_last_image, _video_frame_index, _last_subtitle); ++_video_frame_index; } |
