From 2d6e58497e76836604364b037df9b00ba3d75b69 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Oct 2014 19:23:14 +0000 Subject: lavf: switch to AVCodecContext.framerate for demuxing --- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mux.c') diff --git a/libavformat/mux.c b/libavformat/mux.c index 3b11e4e938..4067c16bab 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -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); } -- cgit v1.2.3