af_aresample: 10l fix, wrong timebase for next_pts.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-18 03:51:37 +02:00
parent 17d4233c9c
commit db6ef054f5

View File

@ -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;