Revision 9b4f1cdb libavcodec/utils.c

View differences:

libavcodec/utils.c
679 679
    return ret;
680 680
}
681 681

  
682
#if FF_API_AUDIO_OLD
683
int attribute_align_arg avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
684
                         int *frame_size_ptr,
685
                         const uint8_t *buf, int buf_size)
686
{
687
    AVPacket avpkt;
688
    av_init_packet(&avpkt);
689
    avpkt.data = buf;
690
    avpkt.size = buf_size;
691

  
692
    return avcodec_decode_audio3(avctx, samples, frame_size_ptr, &avpkt);
693
}
694
#endif
695

  
696 682
int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
697 683
                         int *frame_size_ptr,
698 684
                         AVPacket *avpkt)

Also available in: Unified diff