Commit 5d1006eb authored by conrad's avatar conrad

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16530 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f36d5a10
......@@ -977,6 +977,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
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 ...) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment