diff options
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | 2015-05-04 21:07:52 +0200 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-05-14 19:09:47 +0200 |
commit | 0cb8d786f29c1cac6639ae7d84f5af40553793b4 (patch) | |
tree | 465bf6c1412d55109686dc478706de544a19ef80 /cmdutils_opencl.c | |
parent | c74846388bf7dfbb898d240950993557220cf8ea (diff) | |
download | ffmpeg-0cb8d786f29c1cac6639ae7d84f5af40553793b4.tar.gz |
avidec: check for valid bit_rate range
If bit_rate is negative, it can trigger an av_assert2 in av_rescale_rnd.
Since av_rescale returns int64_t, but st->codec_bit_rate is int, it can
also overflow into a negative value.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0eec40b713eee84e2aec8af35ccce059817cad2a)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'cmdutils_opencl.c')
0 files changed, 0 insertions, 0 deletions