aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-18 03:51:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-18 04:45:08 +0200
commitdb6ef054f55213eec440f6faa609abe61eaa9315 (patch)
tree70340f30fcf2a34b4b509634b45e9e6b76ee3e0b
parent17d4233c9c119ee9cb011e1cc6961df87daa7997 (diff)
downloadffmpeg-db6ef054f55213eec440f6faa609abe61eaa9315.tar.gz
af_aresample: 10l fix, wrong timebase for next_pts.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/af_aresample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index 0dc413dc37..a88768496d 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -183,7 +183,7 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref
outsamplesref->audio->nb_samples = n_out;
if(insamplesref->pts != AV_NOPTS_VALUE) {
- aresample->next_pts = insamplesref->pts;
+ aresample->next_pts =
outsamplesref->pts = av_rescale_q(insamplesref->pts, inlink->time_base, outlink->time_base);
} else{
outsamplesref->pts = AV_NOPTS_VALUE; //aresample->next_pts;