X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fassenc.c;h=caf266e037a2743384b6953e57b99aeaa56bbd8b;hb=bd71c300f9ba7f9875bb5df17ce522e9128bae10;hp=6b4462349c49b0f78f314c4537d59a253f52a02e;hpb=1d9c2dc89a2302076a68b4a3ae3639abbb1a502d;p=ffmpeg diff --git a/libavcodec/assenc.c b/libavcodec/assenc.c index 6b4462349c4..caf266e037a 100644 --- a/libavcodec/assenc.c +++ b/libavcodec/assenc.c @@ -37,9 +37,9 @@ static av_cold int ass_encode_init(AVCodecContext *avctx) } static int ass_encode_frame(AVCodecContext *avctx, - unsigned char *buf, int bufsize, void *data) + unsigned char *buf, int bufsize, + const AVSubtitle *sub) { - AVSubtitle *sub = data; int i, len, total_len = 0; for (i=0; inum_rects; i++) { @@ -67,5 +67,5 @@ AVCodec ff_ass_encoder = { .type = AVMEDIA_TYPE_SUBTITLE, .id = AV_CODEC_ID_SSA, .init = ass_encode_init, - .encode = ass_encode_frame, + .encode_sub = ass_encode_frame, };