]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv10enc.c
avutil/mem: Also poison new av_realloc-allocated blocks
[ffmpeg] / libavcodec / rv10enc.c
index 42316836c5eb5d1cf1becef7e374f9f71d9e5749..c7bd76bf1a582541c6ec2ba1cdbdc3361e18199a 100644 (file)
@@ -70,7 +70,7 @@ static const AVClass rv10_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-AVCodec ff_rv10_encoder = {
+const AVCodec ff_rv10_encoder = {
     .name           = "rv10",
     .long_name      = NULL_IF_CONFIG_SMALL("RealVideo 1.0"),
     .type           = AVMEDIA_TYPE_VIDEO,
@@ -79,7 +79,7 @@ AVCodec ff_rv10_encoder = {
     .init           = ff_mpv_encode_init,
     .encode2        = ff_mpv_encode_picture,
     .close          = ff_mpv_encode_end,
-    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
     .pix_fmts       = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE },
     .priv_class     = &rv10_class,
 };