summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:26:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:19 +0100
commit6eaa31cb9bde85099cc5df6aa93cc3da28df4b02 (patch)
treebf9ed900f35164de0621707bd7c27c96d22fe457 /libavcodec
parent6c775606d1827feed6fee64ba80da0e68067378b (diff)
roqaudioenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/roqaudioenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c
index 5db84c3778..6bc072442c 100644
--- a/libavcodec/roqaudioenc.c
+++ b/libavcodec/roqaudioenc.c
@@ -171,8 +171,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
else
data_size = avctx->channels * avctx->frame_size;
- if ((ret = ff_alloc_packet(avpkt, ROQ_HEADER_SIZE + data_size))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, ROQ_HEADER_SIZE + data_size))) {
return ret;
}
out = avpkt->data;