diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-06 10:25:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-06 10:25:32 +0200 |
commit | 3fa72de82f04802e307085d3fce9eafea1d3dc46 (patch) | |
tree | 075119600cac0d5d61b710c51a1c669306cc291b /ffmpeg_filter.c | |
parent | 84bc317019ba5c35355592df64d152f2cff76339 (diff) | |
parent | 56ee3f9de7b9f6090d599a27d33a392890a2f7b8 (diff) | |
download | ffmpeg-3fa72de82f04802e307085d3fce9eafea1d3dc46.tar.gz |
Merge commit '56ee3f9de7b9f6090d599a27d33a392890a2f7b8'
* commit '56ee3f9de7b9f6090d599a27d33a392890a2f7b8':
avconv: distinguish between -ss 0 and -ss not being used
Conflicts:
ffmpeg.c
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_filter.c')
-rw-r--r-- | ffmpeg_filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index 9f9544bc80..1270ffb615 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -286,11 +286,11 @@ static int insert_trim(OutputStream *ost, AVFilterContext **last_filter, int *pa char filter_name[128]; int ret = 0; - if (of->recording_time == INT64_MAX && !of->start_time) + if (of->recording_time == INT64_MAX && of->start_time == AV_NOPTS_VALUE) return 0; // Use with duration and without output starttime is buggy with trim filters - if (!of->start_time) + if (of->start_time == AV_NOPTS_VALUE) return 0; trim = avfilter_get_by_name(name); @@ -310,7 +310,7 @@ static int insert_trim(OutputStream *ost, AVFilterContext **last_filter, int *pa ret = av_opt_set_double(ctx, "duration", (double)of->recording_time / 1e6, AV_OPT_SEARCH_CHILDREN); } - if (ret >= 0 && of->start_time) { + if (ret >= 0 && of->start_time != AV_NOPTS_VALUE) { ret = av_opt_set_double(ctx, "start", (double)of->start_time / 1e6, AV_OPT_SEARCH_CHILDREN); } |