|
|
|
@ -499,15 +499,16 @@ static int alac_decode_frame(AVCodecContext *avctx, |
|
|
|
|
|
|
|
|
|
get_bits(&alac->gb, 12); /* unknown, skip 12 bits */ |
|
|
|
|
|
|
|
|
|
hassize = get_bits(&alac->gb, 1); /* the output sample size is stored soon */ |
|
|
|
|
/* the output sample size is stored soon */ |
|
|
|
|
hassize = get_bits(&alac->gb, 1); |
|
|
|
|
|
|
|
|
|
wasted_bytes = get_bits(&alac->gb, 2); /* unknown ? */ |
|
|
|
|
|
|
|
|
|
isnotcompressed = get_bits(&alac->gb, 1); /* whether the frame is compressed */ |
|
|
|
|
/* whether the frame is compressed */ |
|
|
|
|
isnotcompressed = get_bits(&alac->gb, 1); |
|
|
|
|
|
|
|
|
|
if (hassize) { |
|
|
|
|
/* now read the number of samples,
|
|
|
|
|
* as a 32bit integer */ |
|
|
|
|
/* now read the number of samples as a 32bit integer */ |
|
|
|
|
outputsamples = get_bits(&alac->gb, 32); |
|
|
|
|
} else |
|
|
|
|
outputsamples = alac->setinfo_max_samples_per_frame; |
|
|
|
@ -522,7 +523,6 @@ static int alac_decode_frame(AVCodecContext *avctx, |
|
|
|
|
int prediction_type[channels]; |
|
|
|
|
int prediction_quantitization[channels]; |
|
|
|
|
int ricemodifier[channels]; |
|
|
|
|
|
|
|
|
|
int i, chan; |
|
|
|
|
|
|
|
|
|
interlacing_shift = get_bits(&alac->gb, 8); |
|
|
|
@ -638,7 +638,6 @@ static int alac_decode_frame(AVCodecContext *avctx, |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return input_buffer_size; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|