mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avformat/utils: Try to correct the codec_framerate in ff_compute_frame_duration() for the encoding case
No testcase where this makes a difference is known Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
46f52274f3
commit
004f1c6cf1
@ -712,7 +712,7 @@ void ff_compute_frame_duration(AVFormatContext *s, int *pnum, int *pden, AVStrea
|
||||
AVCodecParserContext *pc, AVPacket *pkt)
|
||||
{
|
||||
AVRational codec_framerate = s->iformat ? st->codec->framerate :
|
||||
av_inv_q(st->codec->time_base);
|
||||
av_mul_q(av_inv_q(st->codec->time_base), (AVRational){1, st->codec->ticks_per_frame});
|
||||
int frame_size;
|
||||
|
||||
*pnum = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user