|
|
|
@@ -933,9 +933,11 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa |
|
|
|
int ret, got_frame = 0; |
|
|
|
|
|
|
|
if (avctx->get_buffer != avcodec_default_get_buffer) { |
|
|
|
av_log(avctx, AV_LOG_ERROR, "A custom get_buffer() cannot be used with " |
|
|
|
"avcodec_decode_audio3()\n"); |
|
|
|
return AVERROR(EINVAL); |
|
|
|
av_log(avctx, AV_LOG_ERROR, "Custom get_buffer() for use with" |
|
|
|
"avcodec_decode_audio3() detected. Overriding with avcodec_default_get_buffer\n"); |
|
|
|
av_log(avctx, AV_LOG_ERROR, "Please port your application to " |
|
|
|
"avcodec_decode_audio4()\n"); |
|
|
|
avctx->get_buffer = avcodec_default_get_buffer; |
|
|
|
} |
|
|
|
|
|
|
|
ret = avcodec_decode_audio4(avctx, &frame, &got_frame, avpkt); |
|
|
|
|