]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/targaenc.c
aacenc: implement the complete AAC-Main profile
[ffmpeg] / libavcodec / targaenc.c
index e8a3dee4b2cc9c192640e4af71fcef18bc20f62a..de8163a5f05d3a6115fbe90be415153f9c5ea330 100644 (file)
@@ -85,7 +85,7 @@ static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         return AVERROR(EINVAL);
     }
     picsize = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
-    if ((ret = ff_alloc_packet2(avctx, pkt, picsize + 45)) < 0)
+    if ((ret = ff_alloc_packet2(avctx, pkt, picsize + 45, 0)) < 0)
         return ret;
 
     /* zero out the header and only set applicable fields */