Revision 2efa7fd1

View differences:

libavcodec/avcodec.h
2611 2611
 */
2612 2612
attribute_deprecated int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples,
2613 2613
                         int *frame_size_ptr,
2614
                         uint8_t *buf, int buf_size);
2614
                         const uint8_t *buf, int buf_size);
2615 2615

  
2616 2616
/**
2617 2617
 * Decodes an audio frame from \p buf into \p samples.
......
2651 2651
 */
2652 2652
int avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
2653 2653
                         int *frame_size_ptr,
2654
                         uint8_t *buf, int buf_size);
2654
                         const uint8_t *buf, int buf_size);
2655 2655

  
2656 2656
/**
2657 2657
 * Decodes a video frame from \p buf into \p picture.
......
2686 2686
 */
2687 2687
int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
2688 2688
                         int *got_picture_ptr,
2689
                         uint8_t *buf, int buf_size);
2689
                         const uint8_t *buf, int buf_size);
2690 2690

  
2691 2691
/* Decode a subtitle message. Return -1 if error, otherwise return the
2692 2692
 * number of bytes used. If no subtitle could be decompressed,
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