aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bmpenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:21:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:18 +0100
commitf79b09b7af7dfe1156a3afabb26e3727a89839fa (patch)
treeb8d7054eef5ddf31889a257c0ad76ea58152e5f6 /libavcodec/bmpenc.c
parenta18cf3635c03e579419bd1410ae54044e27b8b2d (diff)
downloadffmpeg-f79b09b7af7dfe1156a3afabb26e3727a89839fa.tar.gz
bmpenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bmpenc.c')
-rw-r--r--libavcodec/bmpenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c
index 1c40b13add..865744e0e0 100644
--- a/libavcodec/bmpenc.c
+++ b/libavcodec/bmpenc.c
@@ -120,8 +120,7 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
#define SIZE_BITMAPINFOHEADER 40
hsize = SIZE_BITMAPFILEHEADER + SIZE_BITMAPINFOHEADER + (pal_entries << 2);
n_bytes = n_bytes_image + hsize;
- if ((ret = ff_alloc_packet(pkt, n_bytes)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, n_bytes)) < 0) {
return ret;
}
buf = pkt->data;