]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pnmenc.c
avcodec/qsvenc: Set MaxKpbs to rc_max_rate for CBR and VBR (bitrate is equal to rc_ma...
[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 =