diff options
Diffstat (limited to 'libavcodec/libopusdec.c')
-rw-r--r-- | libavcodec/libopusdec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c index 71078c4a14..9b5cfe7b3d 100644 --- a/libavcodec/libopusdec.c +++ b/libavcodec/libopusdec.c @@ -132,11 +132,8 @@ static int libopus_decode(AVCodecContext *avc, void *data, int ret, nb_samples; frame->nb_samples = MAX_FRAME_SIZE; - ret = ff_get_buffer(avc, frame, 0); - if (ret < 0) { - av_log(avc, AV_LOG_ERROR, "get_buffer() failed\n"); + if ((ret = ff_get_buffer(avc, frame, 0)) < 0) return ret; - } if (avc->sample_fmt == AV_SAMPLE_FMT_S16) nb_samples = opus_multistream_decode(opus->dec, pkt->data, pkt->size, |