aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wma_common.c
diff options
context:
space:
mode:
authorGabriel Dume <gabriel.ddx84@gmail.com>2014-09-02 15:28:50 -0400
committerDiego Biurrun <diego@biurrun.de>2014-09-03 03:09:08 -0700
commitd2a4e4b9cc9a0c2661e1c1d6f6b51babac2cec1b (patch)
tree3dd633befa49f251616f3ae956862ea683b318fc /libavcodec/wma_common.c
parentc487972ed0e1eaebdbe4a13cdd191e119be0b19c (diff)
downloadffmpeg-d2a4e4b9cc9a0c2661e1c1d6f6b51babac2cec1b.tar.gz
wma: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/wma_common.c')
-rw-r--r--libavcodec/wma_common.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/libavcodec/wma_common.c b/libavcodec/wma_common.c
index d1d8045d62..cf76f5cf52 100644
--- a/libavcodec/wma_common.c
+++ b/libavcodec/wma_common.c
@@ -19,6 +19,7 @@
*/
#include "libavutil/attributes.h"
+
#include "wma_common.h"
/**
@@ -31,31 +32,27 @@
av_cold int ff_wma_get_frame_len_bits(int sample_rate, int version,
unsigned int decode_flags)
{
-
int frame_len_bits;
- if (sample_rate <= 16000) {
+ if (sample_rate <= 16000)
frame_len_bits = 9;
- } else if (sample_rate <= 22050 ||
- (sample_rate <= 32000 && version == 1)) {
+ else if (sample_rate <= 22050 || (sample_rate <= 32000 && version == 1))
frame_len_bits = 10;
- } else if (sample_rate <= 48000 || version < 3) {
+ else if (sample_rate <= 48000 || version < 3)
frame_len_bits = 11;
- } else if (sample_rate <= 96000) {
+ else if (sample_rate <= 96000)
frame_len_bits = 12;
- } else {
+ else
frame_len_bits = 13;
- }
if (version == 3) {
int tmp = decode_flags & 0x6;
- if (tmp == 0x2) {
+ if (tmp == 0x2)
++frame_len_bits;
- } else if (tmp == 0x4) {
+ else if (tmp == 0x4)
--frame_len_bits;
- } else if (tmp == 0x6) {
+ else if (tmp == 0x6)
frame_len_bits -= 2;
- }
}
return frame_len_bits;