summaryrefslogtreecommitdiff
path: root/libavcodec/snowenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-25 12:44:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-25 12:58:17 +0200
commitd49210788b0836d56dd872d517fe73f83b080101 (patch)
tree42766572bb28efa6d4f1f273dfd17dc69c509f31 /libavcodec/snowenc.c
parentee8ce211ead04c8684da0c9c143814e57e9b9eda (diff)
downloadffmpeg-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>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r--libavcodec/snowenc.c3
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,
};