Commit 3e99b377 authored by Paul B Mahol's avatar Paul B Mahol

avcodec: remove "get_buffer() failed" message

It is already provided by ff_get_buffer().
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 0c949060
...@@ -761,10 +761,8 @@ static int dss_sp_decode_frame(AVCodecContext *avctx, void *data, ...@@ -761,10 +761,8 @@ static int dss_sp_decode_frame(AVCodecContext *avctx, void *data,
} }
frame->nb_samples = DSS_SP_SAMPLE_COUNT; frame->nb_samples = DSS_SP_SAMPLE_COUNT;
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed.\n");
return ret; return ret;
}
out = (int16_t *)frame->data[0]; out = (int16_t *)frame->data[0];
......
...@@ -281,10 +281,8 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -281,10 +281,8 @@ static int decode_frame(AVCodecContext *avctx,
avpriv_request_sample(avctx, "Pack type %d", pack_type); avpriv_request_sample(avctx, "Pack type %d", pack_type);
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
} }
if ((ret = ff_get_buffer(avctx, p, 0)) < 0) { if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret; return ret;
}
/* jump to data */ /* jump to data */
bytestream2_skip(&gbc, 30); bytestream2_skip(&gbc, 30);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment