avcodec/aliaspixenc: Use ff_alloc_packet2()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Aug 2015 18:36:24 +0000 (20:36 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Aug 2015 18:36:24 +0000 (20:36 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aliaspixenc.c

index 6ceb658..a9ba00c 100644 (file)
@@ -61,7 +61,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
     }
 
     length = ALIAS_HEADER_SIZE + 4 * width * height; // max possible
-    if ((ret = ff_alloc_packet(pkt, length)) < 0) {
+    if ((ret = ff_alloc_packet2(avctx, pkt, length, ALIAS_HEADER_SIZE + height*2)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n", length);
         return ret;
     }