[FFmpeg-cvslog] avcodec/dvbsub: remove useless indirection in dvbsub_encode.

Clément Bœsch git at videolan.org
Sat Aug 22 20:26:53 EEST 2020


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Oct  1 21:08:16 2013 +0200| [346309a79535e5d538c59953fe9db4313c1d0f4a] | committer: Clément Bœsch

avcodec/dvbsub: remove useless indirection in dvbsub_encode.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=346309a79535e5d538c59953fe9db4313c1d0f4a
---

 libavcodec/dvbsub.c | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/libavcodec/dvbsub.c b/libavcodec/dvbsub.c
index 5c081f2b71..7b8ef41a7e 100644
--- a/libavcodec/dvbsub.c
+++ b/libavcodec/dvbsub.c
@@ -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"),



More information about the ffmpeg-cvslog mailing list