[FFmpeg-cvslog] r16530 - trunk/libavformat/mov.c

conrad subversion
Sun Jan 11 09:24:44 CET 2009


Author: conrad
Date: Sun Jan 11 09:24:44 2009
New Revision: 16530

Log:
Read extradata (justification, colors, fonts, etc) for mov/mp4 timed text

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Sun Jan 11 09:03:45 2009	(r16529)
+++ trunk/libavformat/mov.c	Sun Jan 11 09:24:44 2009	(r16530)
@@ -977,6 +977,10 @@ static int mov_read_stsd(MOVContext *c, 
                 sc->sample_size = (bits_per_sample >> 3) * st->codec->channels;
             }
         } else if(st->codec->codec_type==CODEC_TYPE_SUBTITLE){
+            // ttxt stsd contains display flags, justification, background
+            // color, fonts, and default styles, so fake an atom to read it
+            MOVAtom fake_atom = { .size = size - (url_ftell(pb) - start_pos) };
+            mov_read_glbl(c, pb, fake_atom);
             st->codec->codec_id= id;
         } else {
             /* other codec type, just skip (rtp, mp4s, tmcd ...) */




More information about the ffmpeg-cvslog mailing list