mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
rtpenc: Fix the AVRational used for av_rescale_q_rnd
The current one has a zero denominator - this is what was intended in 14aecc50fae6. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
b4bccf3e4e
commit
94f1b11a6f
@ -138,7 +138,7 @@ static int rtp_write_header(AVFormatContext *s1)
|
||||
s->max_frames_per_packet =
|
||||
av_rescale_q_rnd(s1->max_delay,
|
||||
AV_TIME_BASE_Q,
|
||||
(AVRational){ frame_size / st->codec->sample_rate },
|
||||
(AVRational){ frame_size, st->codec->sample_rate },
|
||||
AV_ROUND_DOWN);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user