diff options
author | Ian Caulfield <ian.caulfield@gmx.at> | 2007-01-24 15:32:49 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-01-24 15:32:49 +0000 |
commit | 08c88316854d5c011f298dc779b64ee64578ece1 (patch) | |
tree | d8d9850f1c7fe8311b6aab69172b5b018b04ce0c /libavcodec/parser.c | |
parent | 44a39bd7701e71e0713e67efcc27f3aa0b456417 (diff) | |
download | ffmpeg-08c88316854d5c011f298dc779b64ee64578ece1.tar.gz |
fix indentation, patch by Ian Caulfield % ian P caulfield A gmail P com %
Originally committed as revision 7688 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r-- | libavcodec/parser.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index faeb5ff815..62a95c1a4a 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -668,30 +668,30 @@ static int ac3_sync(const uint8_t *buf, int *channels, int *sample_rate, bsid = show_bits_long(&bits, 29) & 0x1f; if(bsid <= 8) { /* Normal AC-3 */ - skip_bits(&bits, 16); /* crc */ - fscod = get_bits(&bits, 2); - frmsizecod = get_bits(&bits, 6); + skip_bits(&bits, 16); /* crc */ + fscod = get_bits(&bits, 2); + frmsizecod = get_bits(&bits, 6); - if(fscod == 3) - return 0; + if(fscod == 3) + return 0; + + skip_bits(&bits, 5); /* bsid */ + skip_bits(&bits, 3); /* bsmod */ + acmod = get_bits(&bits, 3); + if(acmod & 1 && acmod != 1) + skip_bits(&bits, 2); /* cmixlev */ + if(acmod & 4) + skip_bits(&bits, 2); /* surmixlev */ + if(acmod & 2) + skip_bits(&bits, 2); /* dsurmod */ + lfeon = get_bits1(&bits); + + *sample_rate = ac3_sample_rates[fscod]; + *bit_rate = ac3_bitrates[frmsizecod] * 1000; + *channels = ac3_channels[acmod] + lfeon; + *samples = 6 * 256; - skip_bits(&bits, 5); /* bsid */ - skip_bits(&bits, 3); /* bsmod */ - acmod = get_bits(&bits, 3); - if(acmod & 1 && acmod != 1) - skip_bits(&bits, 2); /* cmixlev */ - if(acmod & 4) - skip_bits(&bits, 2); /* surmixlev */ - if(acmod & 2) - skip_bits(&bits, 2); /* dsurmod */ - lfeon = get_bits1(&bits); - - *sample_rate = ac3_sample_rates[fscod]; - *bit_rate = ac3_bitrates[frmsizecod] * 1000; - *channels = ac3_channels[acmod] + lfeon; - *samples = 6 * 256; - - return ac3_frame_sizes[frmsizecod][fscod] * 2; + return ac3_frame_sizes[frmsizecod][fscod] * 2; } else if (bsid >= 10 && bsid <= 16) { /* Enhanced AC-3 */ strmtyp = get_bits(&bits, 2); substreamid = get_bits(&bits, 3); |