diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-10-08 19:23:14 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-15 06:37:55 +0000 |
commit | 2d6e58497e76836604364b037df9b00ba3d75b69 (patch) | |
tree | 4f665ce1bdfe33cc77c380b39f54cc25812b24c9 /libavformat/mux.c | |
parent | 7ea1b3472a61de4aa4d41b571e99418e4997ad41 (diff) | |
download | ffmpeg-2d6e58497e76836604364b037df9b00ba3d75b69.tar.gz |
lavf: switch to AVCodecContext.framerate for demuxing
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r-- | libavformat/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |