]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dnxhdenc.c
aacdec: reset max_sfb on invalid data.
[ffmpeg] / libavcodec / dnxhdenc.c
index ce8980110bfa5b9021d41251e7ea1ff24a59b499..22640ebee722f62128d9146106c0f80ca260a5b3 100644 (file)
@@ -910,8 +910,7 @@ static int dnxhd_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
     int offset, i, ret;
     uint8_t *buf;
 
-    if ((ret = ff_alloc_packet(pkt, ctx->cid_table->frame_size)) < 0) {
-        av_log(avctx, AV_LOG_ERROR, "output buffer is too small to compress picture\n");
+    if ((ret = ff_alloc_packet2(avctx, pkt, ctx->cid_table->frame_size)) < 0) {
         return ret;
     }
     buf = pkt->data;