Mercurial > libavcodec.hg
comparison dvbsub.c @ 5941:d030978bcd93 libavcodec
remove some empty close/init functions in avcodec
patch by Alex
author | aurel |
---|---|
date | Sun, 25 Nov 2007 17:31:55 +0000 |
parents | dfa6e7fa2bac |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
5940:d63186919b60 | 5941:d030978bcd93 |
---|---|
388 s->object_version = (s->object_version + 1) & 0xf; | 388 s->object_version = (s->object_version + 1) & 0xf; |
389 s->hide_state = !s->hide_state; | 389 s->hide_state = !s->hide_state; |
390 return q - outbuf; | 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 static int dvbsub_encode(AVCodecContext *avctx, | 393 static int dvbsub_encode(AVCodecContext *avctx, |
404 unsigned char *buf, int buf_size, void *data) | 394 unsigned char *buf, int buf_size, void *data) |
405 { | 395 { |
406 DVBSubtitleContext *s = avctx->priv_data; | 396 DVBSubtitleContext *s = avctx->priv_data; |
407 AVSubtitle *sub = data; | 397 AVSubtitle *sub = data; |
414 AVCodec dvbsub_encoder = { | 404 AVCodec dvbsub_encoder = { |
415 "dvbsub", | 405 "dvbsub", |
416 CODEC_TYPE_SUBTITLE, | 406 CODEC_TYPE_SUBTITLE, |
417 CODEC_ID_DVB_SUBTITLE, | 407 CODEC_ID_DVB_SUBTITLE, |
418 sizeof(DVBSubtitleContext), | 408 sizeof(DVBSubtitleContext), |
419 dvbsub_init_decoder, | 409 NULL, |
420 dvbsub_encode, | 410 dvbsub_encode, |
421 dvbsub_close_decoder, | |
422 }; | 411 }; |