diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-25 12:44:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-25 12:58:17 +0200 |
commit | d49210788b0836d56dd872d517fe73f83b080101 (patch) | |
tree | 42766572bb28efa6d4f1f273dfd17dc69c509f31 | |
parent | ee8ce211ead04c8684da0c9c143814e57e9b9eda (diff) | |
download | ffmpeg-d49210788b0836d56dd872d517fe73f83b080101.tar.gz |
avcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/snowenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index d192d1ce14..ea5e544c4f 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -60,7 +60,6 @@ static av_cold int encode_init(AVCodecContext *avctx) } if ((ret = ff_snow_common_init(avctx)) < 0) { - ff_snow_common_end(avctx->priv_data); return ret; } ff_mpegvideoencdsp_init(&s->mpvencdsp, avctx); @@ -1903,6 +1902,8 @@ AVCodec ff_snow_encoder = { AV_PIX_FMT_NONE }, .priv_class = &snowenc_class, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | + FF_CODEC_CAP_INIT_CLEANUP, }; |