summaryrefslogtreecommitdiff
path: root/libavcodec/xfacedec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-12 16:04:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-12 16:04:46 +0100
commit6ec0447d3d220bc113a69fac04f8b2a423342479 (patch)
treebf5090fbffdfaabef215870a1aca0ef760b70e9e /libavcodec/xfacedec.c
parentb36095ea0f668e2b7aac33643a6a33d03433a418 (diff)
xface: remove unused stuff, fix related warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/xfacedec.c')
-rw-r--r--libavcodec/xfacedec.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/xfacedec.c b/libavcodec/xfacedec.c
index 2711b129f0..fbaabdb0c4 100644
--- a/libavcodec/xfacedec.c
+++ b/libavcodec/xfacedec.c
@@ -92,8 +92,6 @@ typedef struct XFaceContext {
static av_cold int xface_decode_init(AVCodecContext *avctx)
{
- XFaceContext *xface = avctx->priv_data;
-
if (avctx->width || avctx->height) {
if (avctx->width != XFACE_WIDTH || avctx->height != XFACE_HEIGHT) {
av_log(avctx, AV_LOG_ERROR,
@@ -110,13 +108,6 @@ static av_cold int xface_decode_init(AVCodecContext *avctx)
return 0;
}
-static av_cold int xface_decode_close(AVCodecContext *avctx)
-{
- XFaceContext *xface = avctx->priv_data;
-
- return 0;
-}
-
static int xface_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
@@ -191,7 +182,6 @@ AVCodec ff_xface_decoder = {
.id = AV_CODEC_ID_XFACE,
.priv_data_size = sizeof(XFaceContext),
.init = xface_decode_init,
- .close = xface_decode_close,
.decode = xface_decode_frame,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("X-face image"),