]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ra144enc.c
aacdec: reset max_sfb on invalid data.
[ffmpeg] / libavcodec / ra144enc.c
index 7df4f47484f381cb01ef1260803a308643b9edf5..4b2db2dcbef667db771541a16d36f2073d0baea8 100644 (file)
@@ -458,8 +458,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     if (ractx->last_frame)
         return 0;
 
-    if ((ret = ff_alloc_packet(avpkt, FRAMESIZE))) {
-        av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+    if ((ret = ff_alloc_packet2(avctx, avpkt, FRAMESIZE))) {
         return ret;
     }