diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-03-30 03:02:41 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-03-30 03:23:02 +0000 |
commit | 95c7cad70cd8b4a6fe773c2bd421b1206c629e34 (patch) | |
tree | 2da336d6147594a02e255834954fbe83c695e9a6 /libavcodec/xbmdec.c | |
parent | c838701ce4515bd51f7827be0b20f256ba5c69f3 (diff) | |
download | ffmpeg-95c7cad70cd8b4a6fe773c2bd421b1206c629e34.tar.gz |
lavc: remove empty function
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/xbmdec.c')
-rw-r--r-- | libavcodec/xbmdec.c | 10 |
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"), |