Skip to content
Snippets Groups Projects
Commit d4ab1292 authored by Paul B Mahol's avatar Paul B Mahol
Browse files

ffmpeg_filter: do not pick evil path for trim filters


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent 9087dcbe
No related branches found
No related tags found
No related merge requests found
...@@ -302,11 +302,11 @@ static int insert_trim(int64_t start_time, int64_t duration, ...@@ -302,11 +302,11 @@ static int insert_trim(int64_t start_time, int64_t duration,
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
if (duration != INT64_MAX) { if (duration != INT64_MAX) {
ret = av_opt_set_double(ctx, "duration", (double)duration / 1e6, ret = av_opt_set_int(ctx, "durationi", duration,
AV_OPT_SEARCH_CHILDREN); AV_OPT_SEARCH_CHILDREN);
} }
if (ret >= 0 && start_time != AV_NOPTS_VALUE) { if (ret >= 0 && start_time != AV_NOPTS_VALUE) {
ret = av_opt_set_double(ctx, "start", (double)start_time / 1e6, ret = av_opt_set_int(ctx, "starti", start_time,
AV_OPT_SEARCH_CHILDREN); AV_OPT_SEARCH_CHILDREN);
} }
if (ret < 0) { if (ret < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment