Revision a2704c97 libavformat/mpegtsenc.c

View differences:

libavformat/mpegtsenc.c
595 595

  
596 596
static int64_t get_pcr(const MpegTSWrite *ts, AVIOContext *pb)
597 597
{
598
    return av_rescale(url_ftell(pb) + 11, 8 * PCR_TIME_BASE, ts->mux_rate) +
598
    return av_rescale(avio_tell(pb) + 11, 8 * PCR_TIME_BASE, ts->mux_rate) +
599 599
           ts->first_pcr;
600 600
}
601 601

  

Also available in: Unified diff