]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rawenc.c
sonic: mark as experimental
[ffmpeg] / libavcodec / rawenc.c
index cb491e9094c36afd997dc858f29eafb0ff5f0aa2..7f5f7d60ffe7f2fd35b66bcc4e05726858d0234e 100644 (file)
@@ -49,7 +49,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
     if (ret < 0)
         return ret;
 
-    if ((ret = ff_alloc_packet(pkt, ret)) < 0)
+    if ((ret = ff_alloc_packet2(avctx, pkt, ret)) < 0)
         return ret;
     if ((ret = avpicture_layout((const AVPicture *)frame, avctx->pix_fmt, avctx->width,
                                 avctx->height, pkt->data, pkt->size)) < 0)