avfilter/vf_fps: fix ABI compatibility with AV_NOPTS starttime
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 29 Aug 2013 10:59:16 +0000 (12:59 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 29 Aug 2013 11:12:09 +0000 (13:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_fps.c

index c1ffc52..4eb3663 100644 (file)
@@ -184,7 +184,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
             if (ret < 0)
                 return ret;
 
-            if (s->start_time != DBL_MAX) {
+            if (s->start_time != DBL_MAX && s->start_time != AV_NOPTS_VALUE) {
                 double first_pts = s->start_time * AV_TIME_BASE;
                 first_pts = FFMIN(FFMAX(first_pts, INT64_MIN), INT64_MAX);
                 s->first_pts = s->pts = av_rescale_q(first_pts, AV_TIME_BASE_Q,