X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fsrtenc.c;h=739645b3bf6b058d443b07a390650b5d701c1f82;hb=d27edc038a5d59f25b28964b38d9f8d7ce4a6e64;hp=56f29e9f552bae2d27518461f2ab7c32440c2c6f;hpb=9f8e2e92ae88841709ae1ffe71572ef7e5e865c7;p=ffmpeg diff --git a/libavcodec/srtenc.c b/libavcodec/srtenc.c index 56f29e9f552..739645b3bf6 100644 --- a/libavcodec/srtenc.c +++ b/libavcodec/srtenc.c @@ -204,7 +204,7 @@ static void srt_move_cb(void *priv, int x1, int y1, int x2, int y2, { SRTContext *s = priv; - if (s->avctx->codec->id == CODEC_ID_SRT) { + if (s->avctx->codec->id == AV_CODEC_ID_SRT) { char buffer[32]; int len = snprintf(buffer, sizeof(buffer), " X1:%03u X2:%03u Y1:%03u Y2:%03u", x1, x2, y1, y2); @@ -254,7 +254,7 @@ static int srt_encode_frame(AVCodecContext *avctx, dialog = ff_ass_split_dialog(s->ass_ctx, sub->rects[i]->ass, 0, &num); for (; dialog && num--; dialog++) { - if (avctx->codec->id == CODEC_ID_SRT) { + if (avctx->codec->id == AV_CODEC_ID_SRT) { int sh, sm, ss, sc = 10 * dialog->start; int eh, em, es, ec = 10 * dialog->end; sh = sc/3600000; sc -= 3600000*sh;