You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Small refactor to ensure that audio files have no image data - and allow videos below them to show through...
This commit is contained in:
@@ -513,13 +513,13 @@ std::shared_ptr<Frame> FrameMapper::GetFrame(int64_t requested_frame)
|
||||
// Copy the image from the odd field
|
||||
std::shared_ptr<Frame> odd_frame = mapped_frame;
|
||||
|
||||
if (odd_frame)
|
||||
if (odd_frame && odd_frame->has_image_data)
|
||||
frame->AddImage(std::make_shared<QImage>(*odd_frame->GetImage()), true);
|
||||
if (mapped.Odd.Frame != mapped.Even.Frame) {
|
||||
// Add even lines (if different than the previous image)
|
||||
std::shared_ptr<Frame> even_frame;
|
||||
even_frame = GetOrCreateFrame(mapped.Even.Frame);
|
||||
if (even_frame)
|
||||
if (even_frame && even_frame->has_image_data)
|
||||
frame->AddImage(std::make_shared<QImage>(*even_frame->GetImage()), false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user