projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4bccf3
)
rtpenc: Fix the AVRational used for av_rescale_q_rnd
author
Martin Storsjö
<martin@martin.st>
Wed, 7 Mar 2012 22:52:53 +0000
(
00:52
+0200)
committer
Martin Storsjö
<martin@martin.st>
Wed, 7 Mar 2012 23:15:28 +0000
(
01:15
+0200)
The current one has a zero denominator - this is what was
intended in
14aecc50fae6
.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpenc.c
b/libavformat/rtpenc.c
index
787eba8
..
5df25e4
100644
(file)
--- 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);
}
}