Commit 94f1b11a authored by Martin Storsjö's avatar Martin Storsjö

rtpenc: Fix the AVRational used for av_rescale_q_rnd

The current one has a zero denominator - this is what was
intended in 14aecc50.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent b4bccf3e
...@@ -138,7 +138,7 @@ static int rtp_write_header(AVFormatContext *s1) ...@@ -138,7 +138,7 @@ static int rtp_write_header(AVFormatContext *s1)
s->max_frames_per_packet = s->max_frames_per_packet =
av_rescale_q_rnd(s1->max_delay, av_rescale_q_rnd(s1->max_delay,
AV_TIME_BASE_Q, AV_TIME_BASE_Q,
(AVRational){ frame_size / st->codec->sample_rate }, (AVRational){ frame_size, st->codec->sample_rate },
AV_ROUND_DOWN); AV_ROUND_DOWN);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment