[FFmpeg-devel] [PATCH] RealText demuxer and decoder.
Philip Langdale
philipl at overt.org
Sun Jun 17 23:43:39 CEST 2012
On Sat, 16 Jun 2012 22:13:42 +0200
Clément Bœsch <ubitux at gmail.com> wrote:
> +static int realtext_decode_frame(AVCodecContext *avctx,
> + void *data, int *got_sub_ptr,
> AVPacket *avpkt) +{
> + AVSubtitle *sub = data;
> + const char *ptr = avpkt->data;
> + AVBPrint buf;
> +
> + av_bprint_init(&buf, 0, 4096);
> + if (ptr && avpkt->size > 0 && !rt_event_to_ass(&buf, ptr))
> + ff_ass_add_rect(sub, buf.str, avpkt->pts, avpkt->duration,
> 0);
Don't you need to rescale the pts and duration? I know I had to for
mov_text.
--phil
More information about the ffmpeg-devel
mailing list