Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-03-30 07:02:41 +0400
committerPaul B Mahol <onemda@gmail.com>2013-03-30 07:23:02 +0400
commit95c7cad70cd8b4a6fe773c2bd421b1206c629e34 (patch)
tree2da336d6147594a02e255834954fbe83c695e9a6 /libavcodec/xbmdec.c
parentc838701ce4515bd51f7827be0b20f256ba5c69f3 (diff)
lavc: remove empty function
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/xbmdec.c')
-rw-r--r--libavcodec/xbmdec.c10
1 files changed, 1 insertions, 9 deletions
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"),