File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -892,7 +892,11 @@ void FFmpegReader::ProcessVideoPacket(int64_t requested_frame)
892892 // method will scale it back to timeline size before scaling it smaller again. This needs to be fixed in
893893 // the future.
894894 int max_width = Settings::Instance ()->MAX_WIDTH ;
895+ if (max_width <= 0 )
896+ max_width = info.width ;
895897 int max_height = Settings::Instance ()->MAX_HEIGHT ;
898+ if (max_height <= 0 )
899+ max_height = info.height ;
896900
897901 Clip* parent = (Clip*) GetClip ();
898902 if (parent) {
Original file line number Diff line number Diff line change @@ -168,7 +168,11 @@ std::shared_ptr<Frame> QtImageReader::GetFrame(int64_t requested_frame)
168168 // method will scale it back to timeline size before scaling it smaller again. This needs to be fixed in
169169 // the future.
170170 int max_width = Settings::Instance ()->MAX_WIDTH ;
171+ if (max_width <= 0 )
172+ max_width = info.width ;
171173 int max_height = Settings::Instance ()->MAX_HEIGHT ;
174+ if (max_height <= 0 )
175+ max_height = info.height ;
172176
173177 Clip* parent = (Clip*) GetClip ();
174178 if (parent) {
You can’t perform that action at this time.
0 commit comments