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/ac3enc_template.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/ac3enc_template.c')
-rw-r--r-- | libavcodec/ac3enc_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c index fb6aad95df..0389c2ef4a 100644 --- a/libavcodec/ac3enc_template.c +++ b/libavcodec/ac3enc_template.c @@ -435,7 +435,7 @@ int AC3_NAME(encode_frame)(AVCodecContext *avctx, AVPacket *avpkt, ff_ac3_quantize_mantissas(s); - if ((ret = ff_alloc_packet2(avctx, avpkt, s->frame_size))) + if ((ret = ff_alloc_packet2(avctx, avpkt, s->frame_size)) < 0) return ret; ff_ac3_output_frame(s, avpkt->data); |