]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/realtextdec.c
g723_1dec: remove unneeded cliping that leaked in from merge from libav
[ffmpeg] / libavcodec / realtextdec.c
index d2ac0cd7d875bad077e4755cf480ffb52e492e9d..102e0d924f31c7aaa9f7749a1afcd9b6c6687225 100644 (file)
@@ -65,7 +65,7 @@ static int realtext_decode_frame(AVCodecContext *avctx,
 
     av_bprint_init(&buf, 0, 4096);
     // note: no need to rescale pts & duration since they are in the same
-    // timebase than ASS (1/100)
+    // timebase as ASS (1/100)
     if (ptr && avpkt->size > 0 && !rt_event_to_ass(&buf, ptr))
         ff_ass_add_rect(sub, buf.str, avpkt->pts, avpkt->duration, 0);
     *got_sub_ptr = sub->num_rects > 0;
@@ -77,7 +77,7 @@ AVCodec ff_realtext_decoder = {
     .name           = "realtext",
     .long_name      = NULL_IF_CONFIG_SMALL("RealText subtitle"),
     .type           = AVMEDIA_TYPE_SUBTITLE,
-    .id             = CODEC_ID_REALTEXT,
+    .id             = AV_CODEC_ID_REALTEXT,
     .decode         = realtext_decode_frame,
     .init           = ff_ass_subtitle_header_default,
 };