[FFmpeg-devel] [PATCH] add support for text subtitles in MOV

Reimar Döffinger Reimar.Doeffinger
Sat Jan 26 22:29:28 CET 2008


> [...]
> > @@ -1532,6 +1535,12 @@
> >      } else {
> >  #endif
> >          av_get_packet(s->pb, pkt, sample->size);
> > +        if (s->streams[sc->ffindex]->codec->codec_id == CODEC_ID_TEXT) {
> > +            int textlen = FFMIN(AV_RB16(pkt->data), sample->size - 2);
> > +            textlen = FFMAX(textlen, 0);
> > +            memmove(pkt->data, pkt->data + 2, textlen);
> > +            pkt->size = textlen;
> > +        }
> >  #ifdef CONFIG_DV_DEMUXER
> >          if (mov->dv_demux) {
> >              void *pkt_destruct_func = pkt->destruct;
> 
> ok

Applied this part.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080126/fa6bcb1e/attachment.pgp>



More information about the ffmpeg-devel mailing list