You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
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: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -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. */
|
/* The maximum packet size is 6144 bits aka 768 bytes per channel. */
|
||||||
if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels)))) {
|
if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels))))
|
||||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
|
|
||||||
out_ptr = avpkt->data;
|
out_ptr = avpkt->data;
|
||||||
out_buffer_size = avpkt->size;
|
out_buffer_size = avpkt->size;
|
||||||
|
Reference in New Issue
Block a user