aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/atomic.h
diff options
context:
space:
mode:
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>2015-05-04 21:07:52 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-11-26 01:38:16 +0100
commit045121959e20db1e66da9e3934fa70cd20f5a4f2 (patch)
treea9436eac0d6c80b2adfaca8e0a84629c86894dcb /libavutil/atomic.h
parentd837407ae0bcdfe676713c16871daadddc99649f (diff)
downloadffmpeg-045121959e20db1e66da9e3934fa70cd20f5a4f2.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 'libavutil/atomic.h')
0 files changed, 0 insertions, 0 deletions