aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:25:06 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:19 +0100
commitf8a67cb81fccc2f321c205a312de8e61da802756 (patch)
tree7bdb38f27d035045345ef07dbdee555c0bff1389
parent35dfeb871ce76ce8957dda28e3c842f9594f7714 (diff)
downloadffmpeg-f8a67cb81fccc2f321c205a312de8e61da802756.tar.gz
jpeglsenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/jpeglsenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c
index aff1c6dd82..4b8bedb9f4 100644
--- a/libavcodec/jpeglsenc.c
+++ b/libavcodec/jpeglsenc.c
@@ -250,9 +250,8 @@ static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt,
else
comps = 3;
- if ((ret = ff_alloc_packet(pkt, avctx->width*avctx->height*comps*4 +
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width*avctx->height*comps*4 +
FF_MIN_BUFFER_SIZE)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
return ret;
}