Revision 2efa7fd1 libavcodec/utils.c

View differences:

libavcodec/utils.c
934 934

  
935 935
int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
936 936
                         int *got_picture_ptr,
937
                         uint8_t *buf, int buf_size)
937
                         const uint8_t *buf, int buf_size)
938 938
{
939 939
    int ret;
940 940

  
......
957 957

  
958 958
int attribute_align_arg avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
959 959
                         int *frame_size_ptr,
960
                         uint8_t *buf, int buf_size)
960
                         const uint8_t *buf, int buf_size)
961 961
{
962 962
    int ret;
963 963

  
......
986 986
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
987 987
int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples,
988 988
                         int *frame_size_ptr,
989
                         uint8_t *buf, int buf_size){
989
                         const uint8_t *buf, int buf_size){
990 990
    *frame_size_ptr= AVCODEC_MAX_AUDIO_FRAME_SIZE;
991 991
    return avcodec_decode_audio2(avctx, samples, frame_size_ptr, buf, buf_size);
992 992
}

Also available in: Unified diff