aboutsummaryrefslogtreecommitdiffstats
path: root/compat/msvcrt/snprintf.c
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-07-30 18:53:10 +0200
commit74a88a509c6e60bec20cb74291b69b9d5dff0a0d (patch)
treef2bbbb431fb20f258f57c146d36d78f34bee1755 /compat/msvcrt/snprintf.c
parentff68bf7a1bf32bd497f758c231fd7d816f07d86c (diff)
downloadffmpeg-74a88a509c6e60bec20cb74291b69b9d5dff0a0d.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 'compat/msvcrt/snprintf.c')
0 files changed, 0 insertions, 0 deletions