summaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2015-05-04 21:07:52 +0200
committerAndreas Cadhalpun <[email protected]>2015-11-26 01:38:16 +0100
commit045121959e20db1e66da9e3934fa70cd20f5a4f2 (patch)
treea9436eac0d6c80b2adfaca8e0a84629c86894dcb /libavformat/utils.c
parentd837407ae0bcdfe676713c16871daadddc99649f (diff)
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 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 0eec40b713eee84e2aec8af35ccce059817cad2a) Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions