summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-03-30 03:02:41 +0000
committerPaul B Mahol <onemda@gmail.com>2013-03-30 03:23:02 +0000
commit95c7cad70cd8b4a6fe773c2bd421b1206c629e34 (patch)
tree2da336d6147594a02e255834954fbe83c695e9a6
parentc838701ce4515bd51f7827be0b20f256ba5c69f3 (diff)
lavc: remove empty function
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/v308dec.c7
-rw-r--r--libavcodec/v408dec.c8
-rw-r--r--libavcodec/xbmdec.c10
-rw-r--r--libavcodec/y41pdec.c7
-rw-r--r--libavcodec/yuv4dec.c7
5 files changed, 1 insertions, 38 deletions
diff --git a/libavcodec/v308dec.c b/libavcodec/v308dec.c
index b6f197da51..75d65e8352 100644
--- a/libavcodec/v308dec.c
+++ b/libavcodec/v308dec.c
@@ -72,19 +72,12 @@ static int v308_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
-static av_cold int v308_decode_close(AVCodecContext *avctx)
-{
-
- return 0;
-}
-
AVCodec ff_v308_decoder = {
.name = "v308",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_V308,
.init = v308_decode_init,
.decode = v308_decode_frame,
- .close = v308_decode_close,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:4:4"),
};
diff --git a/libavcodec/v408dec.c b/libavcodec/v408dec.c
index 31c14dc3e1..751650d35e 100644
--- a/libavcodec/v408dec.c
+++ b/libavcodec/v408dec.c
@@ -79,12 +79,6 @@ static int v408_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
-static av_cold int v408_decode_close(AVCodecContext *avctx)
-{
-
- return 0;
-}
-
#if CONFIG_AYUV_DECODER
AVCodec ff_ayuv_decoder = {
.name = "ayuv",
@@ -92,7 +86,6 @@ AVCodec ff_ayuv_decoder = {
.id = AV_CODEC_ID_AYUV,
.init = v408_decode_init,
.decode = v408_decode_frame,
- .close = v408_decode_close,
.capabilities = CODEC_CAP_DR1,
.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,
.init = v408_decode_init,
.decode = v408_decode_frame,
- .close = v408_decode_close,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
};
diff --git a/libavcodec/xbmdec.c b/libavcodec/xbmdec.c
index 51f88a238b..24fe550dda 100644
--- a/libavcodec/xbmdec.c
+++ b/libavcodec/xbmdec.c
@@ -27,6 +27,7 @@
static av_cold int xbm_decode_init(AVCodecContext *avctx)
{
+ avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
return 0;
}
@@ -73,8 +74,6 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
ptr += strcspn(ptr, "\n\r") + 1;
}
- avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
-
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
return ret;
@@ -109,18 +108,11 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
-static av_cold int xbm_decode_close(AVCodecContext *avctx)
-{
-
- return 0;
-}
-
AVCodec ff_xbm_decoder = {
.name = "xbm",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_XBM,
.init = xbm_decode_init,
- .close = xbm_decode_close,
.decode = xbm_decode_frame,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("XBM (X BitMap) image"),
diff --git a/libavcodec/y41pdec.c b/libavcodec/y41pdec.c
index 42449c63c4..70b68aa612 100644
--- a/libavcodec/y41pdec.c
+++ b/libavcodec/y41pdec.c
@@ -81,19 +81,12 @@ static int y41p_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
-static av_cold int y41p_decode_close(AVCodecContext *avctx)
-{
-
- return 0;
-}
-
AVCodec ff_y41p_decoder = {
.name = "y41p",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_Y41P,
.init = y41p_decode_init,
.decode = y41p_decode_frame,
- .close = y41p_decode_close,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
};
diff --git a/libavcodec/yuv4dec.c b/libavcodec/yuv4dec.c
index 6965f3924f..1d1fdd09c5 100644
--- a/libavcodec/yuv4dec.c
+++ b/libavcodec/yuv4dec.c
@@ -73,19 +73,12 @@ static int yuv4_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
-static av_cold int yuv4_decode_close(AVCodecContext *avctx)
-{
-
- return 0;
-}
-
AVCodec ff_yuv4_decoder = {
.name = "yuv4",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_YUV4,
.init = yuv4_decode_init,
.decode = yuv4_decode_frame,
- .close = yuv4_decode_close,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:2:0"),
};