mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
avcodec/dvbsub: remove useless indirection in dvbsub_encode.
This commit is contained in:
parent
7d8eafab91
commit
346309a795
@ -268,9 +268,8 @@ static int dvb_encode_rle8(uint8_t **pq, int buf_size,
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int encode_dvb_subtitles(AVCodecContext *avctx,
|
static int dvbsub_encode(AVCodecContext *avctx, uint8_t *outbuf, int buf_size,
|
||||||
uint8_t *outbuf, int buf_size,
|
const AVSubtitle *h)
|
||||||
const AVSubtitle *h)
|
|
||||||
{
|
{
|
||||||
DVBSubtitleContext *s = avctx->priv_data;
|
DVBSubtitleContext *s = avctx->priv_data;
|
||||||
uint8_t *q, *pseg_len;
|
uint8_t *q, *pseg_len;
|
||||||
@ -509,16 +508,6 @@ static int encode_dvb_subtitles(AVCodecContext *avctx,
|
|||||||
return q - outbuf;
|
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 = {
|
AVCodec ff_dvbsub_encoder = {
|
||||||
.name = "dvbsub",
|
.name = "dvbsub",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),
|
.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),
|
||||||
|
Loading…
Reference in New Issue
Block a user