aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-26 12:02:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-26 12:02:44 +0200
commitdb07fc20200d7d7b0fd39ae38645b10b7589d5ea (patch)
tree174fa6c74ae856ac18397fbac9628bcb18061912
parent1b236541a6b55da6ddc73fadd9a252c7e4bfb55f (diff)
downloadffmpeg-db07fc20200d7d7b0fd39ae38645b10b7589d5ea.tar.gz
avformat/mpegts: Avoid float in bitrate calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 613584e4b6..aeb2335eac 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2576,7 +2576,7 @@ static int mpegts_read_header(AVFormatContext *s)
/* NOTE2: it is only the bitrate of the start of the stream */
ts->pcr_incr = (pcrs[1] - pcrs[0]) / (packet_count[1] - packet_count[0]);
ts->cur_pcr = pcrs[0] - ts->pcr_incr * packet_count[0];
- s->bit_rate = TS_PACKET_SIZE * 8 * 27e6 / ts->pcr_incr;
+ s->bit_rate = TS_PACKET_SIZE * 8 * 27000000LL / ts->pcr_incr;
st->codec->bit_rate = s->bit_rate;
st->start_time = ts->cur_pcr;
av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%d\n",