Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 18:00:47 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 22:03:20 +0400
commit1308b2df44d33786342e06387d6462bc95e769ea (patch)
tree44c997ce0bdbbd6b66081d3d8b65addce85b38d2 /libavcodec/libfaac.c
parent7d3ef3840b626fcca09f1f5ce569afe76ad2e43a (diff)
libfaac: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libfaac.c')
-rw-r--r--libavcodec/libfaac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c
index ab442add4a..06152d9383 100644
--- a/libavcodec/libfaac.c
+++ b/libavcodec/libfaac.c
@@ -184,8 +184,7 @@ static int Faac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
int num_samples = frame ? frame->nb_samples : 0;
void *samples = frame ? frame->data[0] : NULL;
- if ((ret = ff_alloc_packet(avpkt, (7 + 768) * avctx->channels))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, (7 + 768) * avctx->channels))) {
return ret;
}