aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-06-26 19:31:03 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-06-26 23:35:26 +0200
commit04dfbc9441beed93984568c1547f1ed588122627 (patch)
treef714c24ebddb051d968997cca0c4e0d1160628ba /.gitignore
parent22291c372fa703242e8429bed61700ba81258f19 (diff)
downloadffmpeg-04dfbc9441beed93984568c1547f1ed588122627.tar.gz
s302m: fix arithmetic exception
If nb_samples is zero, the bit_rate calculation results in a division by zero. Since ff_get_buffer fails if frame->nb_samples is zero, this can be fixed by moving the bit_rate calculation after that function call. That also makes it possible to reuse the already calculated frame->nb_samples value. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions