lavf: switch to AVCodecContext.framerate for demuxing

This commit is contained in:
Anton Khirnov
2014-10-08 19:23:14 +00:00
parent 7ea1b3472a
commit 2d6e58497e
3 changed files with 10 additions and 8 deletions

View File

@@ -265,7 +265,7 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
/* duration field */
if (pkt->duration == 0) {
ff_compute_frame_duration(&num, &den, st, NULL, pkt);
ff_compute_frame_duration(s, &num, &den, st, NULL, pkt);
if (den && num) {
pkt->duration = av_rescale(1, num * (int64_t)st->time_base.den * st->codec->ticks_per_frame, den * (int64_t)st->time_base.num);
}