Commit a8f6df8a authored by Paul B Mahol's avatar Paul B Mahol

libfdk-aacenc: remove redundant log message if ff_alloc_packet2 fails

The whole point of ff_alloc_packet2 is to not bloat code with
duplicated error messages.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6ad45600
......@@ -315,10 +315,8 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
}
/* The maximum packet size is 6144 bits aka 768 bytes per channel. */
if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels)))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels))))
return ret;
}
out_ptr = avpkt->data;
out_buffer_size = avpkt->size;
......
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