aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_frei0r.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 19:42:08 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 19:42:08 +0000
commit41f1d3afebd64b02e9cabd5f0ae0c62a8647b9f4 (patch)
tree9995b8076fcebd4593dad224f15b70d2eb821269 /libavfilter/vf_frei0r.c
parenta4ef9658a2ae9c985a3b5f5006abe74018ce9581 (diff)
downloadffmpeg-41f1d3afebd64b02e9cabd5f0ae0c62a8647b9f4.tar.gz
Fix timestamp handling in more filters after the change which set the
timebase in the filter link. Originally committed as revision 25649 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_frei0r.c')
-rw-r--r--libavfilter/vf_frei0r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index 9ff325fd38..4afbded5a8 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -330,7 +330,7 @@ static void end_frame(AVFilterLink *inlink)
AVFilterBufferRef *inpicref = inlink->cur_buf;
AVFilterBufferRef *outpicref = outlink->out_buf;
- frei0r->update(frei0r->instance, (double)inpicref->pts / AV_TIME_BASE,
+ frei0r->update(frei0r->instance, inpicref->pts * av_q2d(inlink->time_base) * 1000,
(const uint32_t *)inpicref->data[0],
(uint32_t *)outpicref->data[0]);
avfilter_unref_buffer(inpicref);