diff options
author | James Zern <jzern@google.com> | 2013-03-06 23:11:00 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-07 01:11:46 +0400 |
commit | bcaf64b605442e1622d16da89d4ec0e7730b8a8c (patch) | |
tree | 602bba8a8f63390b54c3ffacb1fd246b6b65e592 /libavcodec/libfdk-aacenc.c | |
parent | c257fe1fdee5846cde8f4ccb6fa2d01190829dac (diff) |
normalize calls to ff_alloc_packet2
- check ret < 0
- remove excessive error log
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libfdk-aacenc.c')
-rw-r--r-- | libavcodec/libfdk-aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c index d76b21541e..e4710f6c56 100644 --- a/libavcodec/libfdk-aacenc.c +++ b/libavcodec/libfdk-aacenc.c @@ -339,7 +339,7 @@ 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)))) + if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels))) < 0) return ret; out_ptr = avpkt->data; |