diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2007-07-23 22:47:49 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2007-07-23 22:47:49 +0000 |
commit | e2cd6686fa0a07b5122ce31b51658f42b090e57e (patch) | |
tree | 1dc811a4c8965bbe1b6e0b06f469e40ce6ba0280 /libavcodec | |
parent | bc8edb7e53f54c53825e2adc1f093945496316f7 (diff) | |
download | ffmpeg-e2cd6686fa0a07b5122ce31b51658f42b090e57e.tar.gz |
use enum value instead of numerical value for acmod
Originally committed as revision 9781 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ac3dec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index b6451cdbb6..364934dd39 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1348,7 +1348,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) 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(AC3DecodeContext *ctx, int blk) } } - 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) |