Revision 28e7453c

View differences:

libavcodec/dvbsub.c
390 390
    return q - outbuf;
391 391
}
392 392

  
393
static int dvbsub_init_decoder(AVCodecContext *avctx)
394
{
395
    return 0;
396
}
397

  
398
static int dvbsub_close_decoder(AVCodecContext *avctx)
399
{
400
    return 0;
401
}
402

  
403 393
static int dvbsub_encode(AVCodecContext *avctx,
404 394
                       unsigned char *buf, int buf_size, void *data)
405 395
{
......
416 406
    CODEC_TYPE_SUBTITLE,
417 407
    CODEC_ID_DVB_SUBTITLE,
418 408
    sizeof(DVBSubtitleContext),
419
    dvbsub_init_decoder,
409
    NULL,
420 410
    dvbsub_encode,
421
    dvbsub_close_decoder,
422 411
};
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
};
libavcodec/dvdsubenc.c
204 204
    return q - outbuf;
205 205
}
206 206

  
207
static int dvdsub_init_encoder(AVCodecContext *avctx)
208
{
209
    return 0;
210
}
211

  
212
static int dvdsub_close_encoder(AVCodecContext *avctx)
213
{
214
    return 0;
215
}
216

  
217 207
static int dvdsub_encode(AVCodecContext *avctx,
218 208
                         unsigned char *buf, int buf_size, void *data)
219 209
{
......
230 220
    CODEC_TYPE_SUBTITLE,
231 221
    CODEC_ID_DVD_SUBTITLE,
232 222
    0,
233
    dvdsub_init_encoder,
223
    NULL,
234 224
    dvdsub_encode,
235
    dvdsub_close_encoder,
236 225
};
libavcodec/wavpack.c
364 364
    return 0;
365 365
}
366 366

  
367
static int wavpack_decode_close(AVCodecContext *avctx)
368
{
369
//    WavpackContext *s = avctx->priv_data;
370

  
371
    return 0;
372
}
373

  
374 367
static int wavpack_decode_frame(AVCodecContext *avctx,
375 368
                            void *data, int *data_size,
376 369
                            uint8_t *buf, int buf_size)
......
587 580
    sizeof(WavpackContext),
588 581
    wavpack_decode_init,
589 582
    NULL,
590
    wavpack_decode_close,
583
    NULL,
591 584
    wavpack_decode_frame,
592 585
};

Also available in: Unified diff