[FFmpeg-cvslog] r9781 - trunk/libavcodec/ac3dec.c
jbr
subversion
Tue Jul 24 00:47:50 CEST 2007
Author: jbr
Date: Tue Jul 24 00:47:49 2007
New Revision: 9781
Log:
use enum value instead of numerical value for acmod
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Tue Jul 24 00:47:49 2007
@@ -1348,7 +1348,7 @@ static int ac3_parse_audio_block(AC3Deco
for (i = 0; i < nfchans; i++)
ctx->chincpl[i] = get_bits1(gb);
- if (acmod == 0x02)
+ if (acmod == AC3_ACMOD_STEREO)
ctx->phsflginu = get_bits1(gb); //phase flag in use
ctx->cplbegf = get_bits(gb, 4);
@@ -1392,13 +1392,13 @@ static int ac3_parse_audio_block(AC3Deco
}
}
- if (acmod == 0x02 && ctx->phsflginu && (ctx->cplcoe & 1 || ctx->cplcoe & 2))
+ if (acmod == AC3_ACMOD_STEREO && ctx->phsflginu && (ctx->cplcoe & 1 || ctx->cplcoe & 2))
for (bnd = 0; bnd < ctx->ncplbnd; bnd++)
if (get_bits1(gb))
ctx->cplco[1][bnd] = -ctx->cplco[1][bnd];
}
- if (acmod == 0x02) {/* rematrixing */
+ if (acmod == AC3_ACMOD_STEREO) {/* rematrixing */
ctx->rematstr = get_bits1(gb);
if (ctx->rematstr) {
if (!(ctx->cplinu) || ctx->cplbegf > 2)
More information about the ffmpeg-cvslog
mailing list