[FFmpeg-cvslog] rtpenc: Fix the AVRational used for av_rescale_q_rnd
Martin Storsjö
git at videolan.org
Fri Mar 9 01:49:24 CET 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Mar 8 00:52:53 2012 +0200| [94f1b11a6fdfc43e48ffa4d29ba48f6ec3ba39d1] | committer: 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 14aecc50fae6.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94f1b11a6fdfc43e48ffa4d29ba48f6ec3ba39d1
---
libavformat/rtpenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 787eba8..5df25e4 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);
}
}
More information about the ffmpeg-cvslog
mailing list