mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/vbn(dec|enc): Remove empty close function
Reviewed-by: Marton Balint <cus@passwd.hu> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f889837e00
commit
81b6a10937
@ -176,11 +176,6 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static av_cold int vbn_close(AVCodecContext *avctx)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
const FFCodec ff_vbn_decoder = {
|
||||
.p.name = "vbn",
|
||||
.p.long_name = NULL_IF_CONFIG_SMALL("Vizrt Binary Image"),
|
||||
@ -188,7 +183,6 @@ const FFCodec ff_vbn_decoder = {
|
||||
.p.id = AV_CODEC_ID_VBN,
|
||||
.init = vbn_init,
|
||||
FF_CODEC_DECODE_CB(vbn_decode_frame),
|
||||
.close = vbn_close,
|
||||
.priv_data_size = sizeof(VBNContext),
|
||||
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS,
|
||||
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE
|
||||
|
@ -132,11 +132,6 @@ static av_cold int vbn_init(AVCodecContext *avctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold int vbn_close(AVCodecContext *avctx)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define OFFSET(x) offsetof(VBNContext, x)
|
||||
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
|
||||
static const AVOption options[] = {
|
||||
@ -163,7 +158,6 @@ const FFCodec ff_vbn_encoder = {
|
||||
.p.priv_class = &vbnenc_class,
|
||||
.init = vbn_init,
|
||||
FF_CODEC_ENCODE_CB(vbn_encode),
|
||||
.close = vbn_close,
|
||||
.priv_data_size = sizeof(VBNContext),
|
||||
.p.pix_fmts = (const enum AVPixelFormat[]) {
|
||||
AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user