[FFmpeg-cvslog] libfdk-aacenc: remove redundant log message if ff_alloc_packet2 fails

Paul B Mahol git at videolan.org
Sun Jul 15 04:29:15 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jul 15 02:19:48 2012 +0000| [a8f6df8a4f8d7cfb030b8dc4fb486b77dea8f7c0] | committer: 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: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a8f6df8a4f8d7cfb030b8dc4fb486b77dea8f7c0
---

 libavcodec/libfdk-aacenc.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index cb1baf3..74d0d80 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list