Revision 8687f767 libavcodec/atrac3.c

View differences:

libavcodec/atrac3.c
225 225
 * @param out       pointer to 8 bit array of outdata
226 226
 */
227 227

  
228
static int decode_bytes(uint8_t* inbuffer, uint8_t* out, int bytes){
228
static int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){
229 229
    int i, off;
230 230
    uint32_t c;
231
    uint32_t* buf;
231
    const uint32_t* buf;
232 232
    uint32_t* obuf = (uint32_t*) out;
233 233

  
234 234
    off = (int)((long)inbuffer & 3);
235
    buf = (uint32_t*) (inbuffer - off);
235
    buf = (const uint32_t*) (inbuffer - off);
236 236
    c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8))));
237 237
    bytes += 3 + off;
238 238
    for (i = 0; i < bytes/4; i++)
......
868 868

  
869 869
static int atrac3_decode_frame(AVCodecContext *avctx,
870 870
            void *data, int *data_size,
871
            uint8_t *buf, int buf_size) {
871
            const uint8_t *buf, int buf_size) {
872 872
    ATRAC3Context *q = avctx->priv_data;
873 873
    int result = 0, i;
874 874
    uint8_t* databuf;
......
919 919
static int atrac3_decode_init(AVCodecContext *avctx)
920 920
{
921 921
    int i;
922
    uint8_t *edata_ptr = avctx->extradata;
922
    const uint8_t *edata_ptr = avctx->extradata;
923 923
    ATRAC3Context *q = avctx->priv_data;
924 924

  
925 925
    /* Take data from the AVCodecContext (RM container). */

Also available in: Unified diff