Revision 28e7453c libavcodec/dvdsubdec.c

View differences:

libavcodec/dvdsubdec.c
42 42
    }
43 43
}
44 44

  
45
static int dvdsub_init_decoder(AVCodecContext *avctx)
46
{
47
    return 0;
48
}
49

  
50 45
static int decode_run_2bit(GetBitContext *gb, int *color)
51 46
{
52 47
    unsigned int v, t;
......
443 438
    return 1;
444 439
}
445 440

  
446
static int dvdsub_close_decoder(AVCodecContext *avctx)
447
{
448
    return 0;
449
}
450

  
451 441
#ifdef DEBUG
452 442
#undef fprintf
453 443
static void ppm_save(const char *filename, uint8_t *bitmap, int w, int h,
......
512 502
    CODEC_TYPE_SUBTITLE,
513 503
    CODEC_ID_DVD_SUBTITLE,
514 504
    0,
515
    dvdsub_init_decoder,
516 505
    NULL,
517
    dvdsub_close_decoder,
506
    NULL,
507
    NULL,
518 508
    dvdsub_decode,
519 509
};

Also available in: Unified diff