Skip to content

Commit

Permalink
[editor] Fix crash saving video after pasting from clipboard to the f…
Browse files Browse the repository at this point in the history
…irst frame with a non-zero PTS
  • Loading branch information
eumagga0x2a committed Jan 23, 2018
1 parent a8a2ff9 commit 85c5569
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions avidemux/common/ADM_editor/src/ADM_segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,9 @@ bool ADM_EditorSegment::pasteFromClipBoard(uint64_t currentTime)
newSegs.push_back(s);
}
segments=newSegs;
// If a video doesn't start at zero and we paste to its first frame,
// we end up with an empty segment at the beginning. Remove it.
removeEmptySegments();
updateStartTime();
dump();
return true;
Expand Down

0 comments on commit 85c5569

Please sign in to comment.