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:49 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 22:03:21 +0400
commit6a74c48cf934816f3bfb9665162012bf77c5acb7 (patch)
treed622639898c19a8acd803e7a62d0705e6b393a1b /libavcodec/pnmenc.c
parent5c6c62543c99e429614c1503885fe0e39af1c352 (diff)
pnmenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pnmenc.c')
-rw-r--r--libavcodec/pnmenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/pnmenc.c b/libavcodec/pnmenc.c
index eae859efb4..99c579a647 100644
--- a/libavcodec/pnmenc.c
+++ b/libavcodec/pnmenc.c
@@ -32,10 +32,9 @@ static int pnm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int i, h, h1, c, n, linesize, ret;
uint8_t *ptr, *ptr1, *ptr2;
- if ((ret = ff_alloc_packet(pkt, avpicture_get_size(avctx->pix_fmt,
+ if ((ret = ff_alloc_packet2(avctx, pkt, avpicture_get_size(avctx->pix_fmt,
avctx->width,
avctx->height) + 200)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "encoded frame too large\n");
return ret;
}