FFmpeg/libavcodec
Andreas Cadhalpun 04dfbc9441 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>
2015-06-26 23:35:26 +02:00
..
2015-06-04 23:10:56 +02:00
2015-06-14 15:09:33 +02:00
2015-04-29 20:13:59 +02:00
2015-06-24 14:45:16 +01:00
2015-05-06 17:50:09 +02:00
2015-05-28 16:10:56 +02:00
2015-06-06 16:02:19 +00:00
2015-05-28 01:01:16 +02:00
2015-06-19 13:57:36 +02:00
2015-06-08 19:11:27 +02:00
2015-06-26 01:00:17 +02:00
2015-05-31 15:03:31 +02:00
2015-05-25 16:08:08 +02:00
2015-06-24 15:09:31 -07:00
2015-05-31 15:03:31 +02:00
2015-05-20 15:50:58 +02:00
2015-06-17 20:11:43 +02:00
2015-06-26 23:35:26 +02:00
2015-05-13 00:41:38 +02:00
2015-05-31 15:03:31 +02:00