Revision 81ef51e6 libavcodec/adpcm.c

View differences:

libavcodec/adpcm.c
841 841

  
842 842
static int adpcm_decode_frame(AVCodecContext *avctx,
843 843
                            void *data, int *data_size,
844
                            uint8_t *buf, int buf_size)
844
                            const uint8_t *buf, int buf_size)
845 845
{
846 846
    ADPCMContext *c = avctx->priv_data;
847 847
    ADPCMChannelStatus *cs;
......
849 849
    int block_predictor[2];
850 850
    short *samples;
851 851
    short *samples_end;
852
    uint8_t *src;
852
    const uint8_t *src;
853 853
    int st; /* stereo */
854 854

  
855 855
    /* DK3 ADPCM accounting variables */
......
1214 1214
        uint8_t shift;
1215 1215
        unsigned int channel;
1216 1216
        uint16_t *samplesC;
1217
        uint8_t *srcC;
1217
        const uint8_t *srcC;
1218 1218

  
1219 1219
        samples_in_chunk = (big_endian ? bytestream_get_be32(&src)
1220 1220
                                       : bytestream_get_le32(&src)) / 28;

Also available in: Unified diff