]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/kgv1dec: remove unused function and variable
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Jan 2014 19:15:22 +0000 (20:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Jan 2014 19:17:23 +0000 (20:17 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/kgv1dec.c

index ea1ca9afd3e7ddb4e73c231ae5aa06b73eda0e14..0c58bade3ff51ff9e0cc98c35c3d165553729490 100644 (file)
@@ -162,19 +162,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
 
 static av_cold int decode_init(AVCodecContext *avctx)
 {
-    KgvContext * const c = avctx->priv_data;
-
     avctx->pix_fmt = AV_PIX_FMT_RGB555;
 
     return 0;
 }
 
-static av_cold int decode_end(AVCodecContext *avctx)
-{
-    KgvContext * const c = avctx->priv_data;
-    return 0;
-}
-
 AVCodec ff_kgv1_decoder = {
     .name           = "kgv1",
     .long_name      = NULL_IF_CONFIG_SMALL("Kega Game Video"),
@@ -182,7 +174,6 @@ AVCodec ff_kgv1_decoder = {
     .id             = AV_CODEC_ID_KGV1,
     .priv_data_size = sizeof(KgvContext),
     .init           = decode_init,
-    .close          = decode_end,
     .decode         = decode_frame,
     .flush          = decode_flush,
     .capabilities   = CODEC_CAP_DR1,