Merge pull request #563 from ferdnyc/timeline-lookup-api

Timeline: Add clip/effect lookup api, GetMaxFrame/GetMaxTime method (w/ unit tests)
This commit is contained in:
Frank Dana
2020-09-10 19:06:44 -04:00
committed by GitHub
9 changed files with 319 additions and 62 deletions

View File

@@ -1296,7 +1296,7 @@ void FFmpegReader::ProcessVideoPacket(int64_t requested_frame) {
if (max_height <= 0)
max_height = info.height;
Clip *parent = (Clip *) GetClip();
Clip *parent = (Clip *) GetParentClip();
if (parent) {
if (parent->scale == SCALE_FIT || parent->scale == SCALE_STRETCH) {
// Best fit or Stretch scaling (based on max timeline size * scaling keyframes)