mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc: remove empty function
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
c838701ce4
commit
95c7cad70c
@ -72,19 +72,12 @@ static int v308_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int v308_decode_close(AVCodecContext *avctx)
|
|
||||||
{
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
AVCodec ff_v308_decoder = {
|
AVCodec ff_v308_decoder = {
|
||||||
.name = "v308",
|
.name = "v308",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.id = AV_CODEC_ID_V308,
|
.id = AV_CODEC_ID_V308,
|
||||||
.init = v308_decode_init,
|
.init = v308_decode_init,
|
||||||
.decode = v308_decode_frame,
|
.decode = v308_decode_frame,
|
||||||
.close = v308_decode_close,
|
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:4:4"),
|
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:4:4"),
|
||||||
};
|
};
|
||||||
|
@ -79,12 +79,6 @@ static int v408_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int v408_decode_close(AVCodecContext *avctx)
|
|
||||||
{
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if CONFIG_AYUV_DECODER
|
#if CONFIG_AYUV_DECODER
|
||||||
AVCodec ff_ayuv_decoder = {
|
AVCodec ff_ayuv_decoder = {
|
||||||
.name = "ayuv",
|
.name = "ayuv",
|
||||||
@ -92,7 +86,6 @@ AVCodec ff_ayuv_decoder = {
|
|||||||
.id = AV_CODEC_ID_AYUV,
|
.id = AV_CODEC_ID_AYUV,
|
||||||
.init = v408_decode_init,
|
.init = v408_decode_init,
|
||||||
.decode = v408_decode_frame,
|
.decode = v408_decode_frame,
|
||||||
.close = v408_decode_close,
|
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed MS 4:4:4:4"),
|
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed MS 4:4:4:4"),
|
||||||
};
|
};
|
||||||
@ -104,7 +97,6 @@ AVCodec ff_v408_decoder = {
|
|||||||
.id = AV_CODEC_ID_V408,
|
.id = AV_CODEC_ID_V408,
|
||||||
.init = v408_decode_init,
|
.init = v408_decode_init,
|
||||||
.decode = v408_decode_frame,
|
.decode = v408_decode_frame,
|
||||||
.close = v408_decode_close,
|
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
|
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
|
||||||
};
|
};
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
static av_cold int xbm_decode_init(AVCodecContext *avctx)
|
static av_cold int xbm_decode_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
|
avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -73,8 +74,6 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
ptr += strcspn(ptr, "\n\r") + 1;
|
ptr += strcspn(ptr, "\n\r") + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
|
|
||||||
|
|
||||||
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
|
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -109,18 +108,11 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int xbm_decode_close(AVCodecContext *avctx)
|
|
||||||
{
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
AVCodec ff_xbm_decoder = {
|
AVCodec ff_xbm_decoder = {
|
||||||
.name = "xbm",
|
.name = "xbm",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.id = AV_CODEC_ID_XBM,
|
.id = AV_CODEC_ID_XBM,
|
||||||
.init = xbm_decode_init,
|
.init = xbm_decode_init,
|
||||||
.close = xbm_decode_close,
|
|
||||||
.decode = xbm_decode_frame,
|
.decode = xbm_decode_frame,
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("XBM (X BitMap) image"),
|
.long_name = NULL_IF_CONFIG_SMALL("XBM (X BitMap) image"),
|
||||||
|
@ -81,19 +81,12 @@ static int y41p_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int y41p_decode_close(AVCodecContext *avctx)
|
|
||||||
{
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
AVCodec ff_y41p_decoder = {
|
AVCodec ff_y41p_decoder = {
|
||||||
.name = "y41p",
|
.name = "y41p",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.id = AV_CODEC_ID_Y41P,
|
.id = AV_CODEC_ID_Y41P,
|
||||||
.init = y41p_decode_init,
|
.init = y41p_decode_init,
|
||||||
.decode = y41p_decode_frame,
|
.decode = y41p_decode_frame,
|
||||||
.close = y41p_decode_close,
|
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
|
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
|
||||||
};
|
};
|
||||||
|
@ -73,19 +73,12 @@ static int yuv4_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int yuv4_decode_close(AVCodecContext *avctx)
|
|
||||||
{
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
AVCodec ff_yuv4_decoder = {
|
AVCodec ff_yuv4_decoder = {
|
||||||
.name = "yuv4",
|
.name = "yuv4",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.id = AV_CODEC_ID_YUV4,
|
.id = AV_CODEC_ID_YUV4,
|
||||||
.init = yuv4_decode_init,
|
.init = yuv4_decode_init,
|
||||||
.decode = yuv4_decode_frame,
|
.decode = yuv4_decode_frame,
|
||||||
.close = yuv4_decode_close,
|
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:2:0"),
|
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:2:0"),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user