]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libkvazaar.c
avcodec/mpeg2dec: Fix motion vector rounding for chroma components
[ffmpeg] / libavcodec / libkvazaar.c
index f35b0df61d5e34b90c9448231ea8cac04996fa43..41a1bbb45e70a3d55d4a486fb70d193998e10ca5 100644 (file)
@@ -231,7 +231,7 @@ static int libkvazaar_encode(AVCodecContext *avctx,
         kvz_data_chunk *chunk = NULL;
         uint64_t written = 0;
 
-        retval = ff_alloc_packet(avpkt, len_out);
+        retval = ff_alloc_packet2(avctx, avpkt, len_out, len_out);
         if (retval < 0) {
             av_log(avctx, AV_LOG_ERROR, "Failed to allocate output packet.\n");
             goto done;
@@ -305,4 +305,6 @@ AVCodec ff_libkvazaar_encoder = {
     .close            = libkvazaar_close,
 
     .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
+
+    .wrapper_name     = "libkvazaar",
 };