Browse Source

avcodec/dvbsub: remove useless indirection in dvbsub_encode.

tags/n4.4
Clément Bœsch 12 years ago
parent
commit
346309a795
1 changed files with 2 additions and 13 deletions
  1. +2
    -13
      libavcodec/dvbsub.c

+ 2
- 13
libavcodec/dvbsub.c View File

@@ -268,9 +268,8 @@ static int dvb_encode_rle8(uint8_t **pq, int buf_size,
return len;
}

static int encode_dvb_subtitles(AVCodecContext *avctx,
uint8_t *outbuf, int buf_size,
const AVSubtitle *h)
static int dvbsub_encode(AVCodecContext *avctx, uint8_t *outbuf, int buf_size,
const AVSubtitle *h)
{
DVBSubtitleContext *s = avctx->priv_data;
uint8_t *q, *pseg_len;
@@ -509,16 +508,6 @@ static int encode_dvb_subtitles(AVCodecContext *avctx,
return q - outbuf;
}

static int dvbsub_encode(AVCodecContext *avctx,
unsigned char *buf, int buf_size,
const AVSubtitle *sub)
{
int ret;

ret = encode_dvb_subtitles(avctx, buf, buf_size, sub);
return ret;
}

AVCodec ff_dvbsub_encoder = {
.name = "dvbsub",
.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),


Loading…
Cancel
Save