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-06 12:40:51 +0100 |
commit | ec94195b80d9927ebb169f9cebacd7c8834a587b (patch) | |
tree | f30c7a99389c7d113a397a69a61c865a6e86d26b /doc/examples/transcoding.c | |
parent | 4ecdd45d24103fc4073687c75a537b77b55b2bf9 (diff) | |
download | ffmpeg-ec94195b80d9927ebb169f9cebacd7c8834a587b.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/transcoding.c')
0 files changed, 0 insertions, 0 deletions