diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-11-28 08:27:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-14 16:51:00 +0100 |
commit | 76cb34f7f5b8608670d1998b587ef9e12856ab99 (patch) | |
tree | 4768e5c2e4bc32768962aceebb3ee2debf999d10 /doc/examples/decoding_encoding.c | |
parent | da87a699ea9c1ba0b330413528dbca29bcc54ef8 (diff) | |
download | ffmpeg-76cb34f7f5b8608670d1998b587ef9e12856ab99.tar.gz |
mpegencts: Fix overflow in cbr mode period calculations
ts->mux_rate is int (signed 32-bit) type. The period calculations
will start to overflow when mux_rate > 5mbps. This fixes overflows
by converting first to 64-bit type.
Fixes #5044.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 64f7db554ee83846f207e82a08946a6a5a6acfe2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/examples/decoding_encoding.c')
0 files changed, 0 insertions, 0 deletions