You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fix default sizes on readers without MAX_WIDTH and MAX_HEIGHT settings (#188)
This commit is contained in:
@@ -892,7 +892,11 @@ void FFmpegReader::ProcessVideoPacket(int64_t requested_frame)
|
||||
// method will scale it back to timeline size before scaling it smaller again. This needs to be fixed in
|
||||
// the future.
|
||||
int max_width = Settings::Instance()->MAX_WIDTH;
|
||||
if (max_width <= 0)
|
||||
max_width = info.width;
|
||||
int max_height = Settings::Instance()->MAX_HEIGHT;
|
||||
if (max_height <= 0)
|
||||
max_height = info.height;
|
||||
|
||||
Clip* parent = (Clip*) GetClip();
|
||||
if (parent) {
|
||||
|
||||
Reference in New Issue
Block a user