Merge commit 'b8d2630c5327d2818d05c8a48be0417905d8e0fd'
* commit 'b8d2630c5327d2818d05c8a48be0417905d8e0fd': dashenc: Reduce the segment duration if cutting out parts with edit lists Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
28b7d7a36d
@ -702,9 +702,11 @@ static int add_segment(OutputStream *os, const char *file,
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
av_strlcpy(seg->file, file, sizeof(seg->file));
|
av_strlcpy(seg->file, file, sizeof(seg->file));
|
||||||
seg->time = time;
|
seg->time = time;
|
||||||
if (seg->time < 0) // If pts<0, it is expected to be cut away with an edit list
|
|
||||||
seg->time = 0;
|
|
||||||
seg->duration = duration;
|
seg->duration = duration;
|
||||||
|
if (seg->time < 0) { // If pts<0, it is expected to be cut away with an edit list
|
||||||
|
seg->duration += seg->time;
|
||||||
|
seg->time = 0;
|
||||||
|
}
|
||||||
seg->start_pos = start_pos;
|
seg->start_pos = start_pos;
|
||||||
seg->range_length = range_length;
|
seg->range_length = range_length;
|
||||||
seg->index_length = index_length;
|
seg->index_length = index_length;
|
||||||
|
Loading…
Reference in New Issue
Block a user