aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/pamenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer2012-03-22 15:00:48 +0100
committerMichael Niedermayer2012-03-22 19:03:21 +0100
commit29971e4f9c588d068312ea8dc607be9a817669c9 (patch)
treec0c09d0d68e630431c0cdf5c8453c939f4bdfb7f /libavcodec/pamenc.c
parent93aafe2a3955a485f350d632be30b26da816faa8 (diff)
pamenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pamenc.c')
-rw-r--r--libavcodec/pamenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/pamenc.c b/libavcodec/pamenc.c
index 7a3499e579..27d135f8dc 100644
--- a/libavcodec/pamenc.c
+++ b/libavcodec/pamenc.c
@@ -88,8 +88,7 @@ static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
return -1;
}
- if ((ret = ff_alloc_packet(pkt, n*h + 200)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "encoded frame too large\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, n*h + 200)) < 0) {
return ret;
}