]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/alacenc.c
pcm: switch to ff_alloc_packet2().
[ffmpeg] / libavcodec / alacenc.c
index cc9560462b48e7df4f36c51c08e9c11f9fa20308..a545b095e4da4819443a019b758bfb7e156ff6ad 100644 (file)
@@ -552,8 +552,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     else
         max_frame_size = s->max_coded_frame_size;
 
-    if ((ret = ff_alloc_packet(avpkt, 2 * max_frame_size))) {
-        av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+    if ((ret = ff_alloc_packet2(avctx, avpkt, 2 * max_frame_size))) {
         return ret;
     }