aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:20:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:18 +0100
commita8aba0684e0bf6beba270541a13967789adc7831 (patch)
tree90497d110d228642b18027464b819f25ce6db089
parent7fe8250e9a4292efc1713aa7d66d534d8cf524bd (diff)
downloadffmpeg-a8aba0684e0bf6beba270541a13967789adc7831.tar.gz
adpcmenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/adpcmenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c
index 572261ae7d..d2a17c5586 100644
--- a/libavcodec/adpcmenc.c
+++ b/libavcodec/adpcmenc.c
@@ -494,8 +494,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
pkt_size = (2 + avctx->channels * (22 + 4 * (frame->nb_samples - 1)) + 7) / 8;
else
pkt_size = avctx->block_align;
- if ((ret = ff_alloc_packet(avpkt, pkt_size))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, pkt_size))) {
return ret;
}
dst = avpkt->data;