diff ac3_parser.c @ 5331:b24bcdd0ae86 libavcodec

move some common values to ac3.h and utilize them
author jbr
date Sun, 15 Jul 2007 01:31:09 +0000
parents b42e963c8149
children 5ae5a74b0e4b
line wrap: on
line diff
--- a/ac3_parser.c	Sat Jul 14 23:57:05 2007 +0000
+++ b/ac3_parser.c	Sun Jul 15 01:31:09 2007 +0000
@@ -64,13 +64,13 @@
 
     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);