Fixes a memory leak on error init. --- libavcodec/jpeglsenc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c index 2a24a5d..ac89436 100644 --- a/libavcodec/jpeglsenc.c +++ b/libavcodec/jpeglsenc.c @@ -452,4 +452,6 @@ AVCodec ff_jpegls_encoder = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16, AV_PIX_FMT_NONE }, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, + FF_CODEC_CAP_INIT_CLEANUP, }; -- 1.9.5 (Apple Git-50.3) _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel