summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/rtpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 787eba87b7..5df25e4b88 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -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);
}
}