Currently removeChunk complains about being unable to get the starting point even if it is getting the segment and offset for the end point which fails. A trivial patch is attached.
diff --git a/avidemux/common/ADM_editor/src/ADM_segment.cpp b/avidemux/common/ADM_editor/src/ADM_segment.cpp
index 2209c88..71739e5 100644
--- a/avidemux/common/ADM_editor/src/ADM_segment.cpp
+++ b/avidemux/common/ADM_editor/src/ADM_segment.cpp
@@ -574,7 +574,7 @@ bool ADM_EditorSegment::removeChunk(uint64_t from, uint64_t to)
}
if(false==convertLinearTimeToSeg( to,&endSeg,&endOffset))
{
- ADM_warning("Cannot get starting point (%" PRIu64" ms\n",from/1000);
+ ADM_warning("Cannot get end point (%" PRIu64" ms\n",to/1000);
return false;
}
I gently push this one.