]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pnmenc.c
Merge commit '3e853ff7acc56b180950ab39e7282f1b938c8784'
[ffmpeg] / libavcodec / pnmenc.c
index 05460ea85509f310d19c3f9dfa8372a01cd41cb1..9c63dcb54b791f4d51944d7d59eaedf54d0b21aa 100644 (file)
@@ -32,7 +32,7 @@ static int pnm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
     if ((ret = ff_alloc_packet2(avctx, pkt, avpicture_get_size(avctx->pix_fmt,
                                                        avctx->width,
-                                                       avctx->height) + 200)) < 0)
+                                                       avctx->height) + 200, 0)) < 0)
         return ret;
 
     bytestream_start =