aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3_parser.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-07-15 01:31:09 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-07-15 01:31:09 +0000
commitcc2a8443eb0501d5be2656a1a0885d96c92400b9 (patch)
tree132b1bf0f56b3f7f6fdf46866ec2ac548930e8a4 /libavcodec/ac3_parser.c
parentcb503702ee1db066389089840ab97c69e6e0a8dd (diff)
downloadffmpeg-cc2a8443eb0501d5be2656a1a0885d96c92400b9.tar.gz
move some common values to ac3.h and utilize them
Originally committed as revision 9679 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3_parser.c')
-rw-r--r--libavcodec/ac3_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c
index 4758ef2b51..e8b8b5bee0 100644
--- a/libavcodec/ac3_parser.c
+++ b/libavcodec/ac3_parser.c
@@ -64,13 +64,13 @@ int ff_ac3_parse_header(const uint8_t buf[7], AC3HeaderInfo *hdr)
hdr->bsmod = get_bits(&gbc, 3);
hdr->acmod = get_bits(&gbc, 3);
- if((hdr->acmod & 1) && hdr->acmod != 1) {
+ if((hdr->acmod & 1) && hdr->acmod != AC3_ACMOD_MONO) {
hdr->cmixlev = get_bits(&gbc, 2);
}
if(hdr->acmod & 4) {
hdr->surmixlev = get_bits(&gbc, 2);
}
- if(hdr->acmod == 2) {
+ if(hdr->acmod == AC3_ACMOD_STEREO) {
hdr->dsurmod = get_bits(&gbc, 2);
}
hdr->lfeon = get_bits1(&gbc);