From 392d975efe9424fe7b1ab3ae308f93f8a51b6c4e Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 10 Feb 2015 14:20:32 +0000 Subject: avcodec: fix clobbered ff_get_buffer() Signed-off-by: Paul B Mahol --- libavcodec/opusdec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libavcodec/opusdec.c') diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c index 759eaa529c..84fa0ff988 100644 --- a/libavcodec/opusdec.c +++ b/libavcodec/opusdec.c @@ -474,10 +474,8 @@ static int opus_decode_packet(AVCodecContext *avctx, void *data, /* setup the data buffers */ ret = ff_get_buffer(avctx, frame, 0); - if (ret < 0) { - av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); + if (ret < 0) return ret; - } frame->nb_samples = 0; for (i = 0; i < avctx->channels; i++) { -- cgit v1.2.3