diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-16 03:54:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-16 03:54:04 +0200 |
commit | efdc895fbdd31aa57fa57627bf6c38479c00145d (patch) | |
tree | 7e73848679d8e6c5971b720f7a9f78b0bb00b119 /libavfilter | |
parent | 75492cce8e5b0cad7eda70cade1a9f33055c6695 (diff) | |
download | ffmpeg-efdc895fbdd31aa57fa57627bf6c38479c00145d.tar.gz |
lavfi: fix pts rescaling in the resampler
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_aresample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c index abc823507c..a5ab38ea9c 100644 --- a/libavfilter/af_aresample.c +++ b/libavfilter/af_aresample.c @@ -138,7 +138,7 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref outsamplesref->audio->sample_rate = outlink->sample_rate; outsamplesref->audio->nb_samples = n_out; outsamplesref->pts = insamplesref->pts == AV_NOPTS_VALUE ? AV_NOPTS_VALUE : - av_rescale(outlink->sample_rate, insamplesref->pts, inlink ->sample_rate); + av_rescale_q(insamplesref->pts, inlink->time_base, outlink->time_base); ff_filter_samples(outlink, outsamplesref); avfilter_unref_buffer(insamplesref); |