]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/tiffenc.c
avcodec: Add a min size parameter to ff_alloc_packet2()
[ffmpeg] / libavcodec / tiffenc.c
index 543dcaf151eeb0dbe126bf9b6b1a61b82ee75522..3cfc77eb4e28c26be10aadf058534364b890bd4c 100644 (file)
@@ -331,7 +331,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     packet_size = avctx->height * bytes_per_row * 2 +
                   avctx->height * 4 + FF_MIN_BUFFER_SIZE;
 
-    if ((ret = ff_alloc_packet2(avctx, pkt, packet_size)) < 0)
+    if ((ret = ff_alloc_packet2(avctx, pkt, packet_size, 0)) < 0)
         return ret;
     ptr          = pkt->data;
     s->buf_start = pkt->data;