Author: thilo.borgmann
Date: Tue Aug 18 01:17:04 2009
New Revision: 5171
Log:
Remove AND mask for joint-stereo check.
Modified:
als/alsdec.c
Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c Tue Aug 18 01:14:49 2009 (r5170)
+++ als/alsdec.c Tue Aug 18 01:17:04 2009 (r5171)
@@ -827,13 +827,13 @@ static int read_frame_data(ALSDecContext
}
// reconstruct joint-stereo blocks
- if (js_blocks[0] & 1) {
- if (js_blocks[1] & 1)
+ if (js_blocks[0]) {
+ if (js_blocks[1])
av_log(ctx->avctx, AV_LOG_WARNING, "Invalid
channel pair!\n");
for (s = 0; s < div_blocks[b]; s++)
raw_samples_L[s] = raw_samples_R[s] -
raw_samples_L[s];
- } else if (js_blocks[1] & 1) {
+ } else if (js_blocks[1]) {
for (s = 0; s < div_blocks[b]; s++)
raw_samples_R[s] = raw_samples_R[s] +
raw_samples_L[s];
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc