return 0;
}
av_frame_copy_props(pbuf, frame);
- pbuf->pts = frame->pts +
- av_rescale_q(inpos, samples_tb, link->time_base);
+ pbuf->pts = frame->pts;
+ if (pbuf->pts != AV_NOPTS_VALUE)
+ pbuf->pts += av_rescale_q(inpos, samples_tb, link->time_base);
pbuf->nb_samples = 0;
}
nb_samples = FFMIN(insamples,