* But there are no proper value in decoder history, so likely result will be no good.
* Bitstream has "Predictor history flag switch", but this flag disables history for all subbands
*/
- samples[0] = c->adpcm_history[ch][band][0] << 7;
- samples[1] = c->adpcm_history[ch][band][1] << 7;
- samples[2] = c->adpcm_history[ch][band][2] << 7;
- samples[3] = c->adpcm_history[ch][band][3] << 7;
+ samples[0] = c->adpcm_history[ch][band][0] * (1 << 7);
+ samples[1] = c->adpcm_history[ch][band][1] * (1 << 7);
+ samples[2] = c->adpcm_history[ch][band][2] * (1 << 7);
+ samples[3] = c->adpcm_history[ch][band][3] * (1 << 7);
}
}
}
{ NULL },
};
-AVCodec ff_dca_encoder = {
+const AVCodec ff_dca_encoder = {
.name = "dca",
.long_name = NULL_IF_CONFIG_SMALL("DCA (DTS Coherent Acoustics)"),
.type = AVMEDIA_TYPE_AUDIO,