forked from FFmpeg/FFmpeg
Support DVD subtitles in mov/mp4 as created by Nero.
See also http://samples.mplayerhq.hu/sub/NeroMP4/unsupported-embedded-subs-2.mp4 Originally committed as revision 18314 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e103e6dbcf
commit
fb9ac65411
1 changed files with 1 additions and 0 deletions
|
@ -997,6 +997,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
|
||||||
// ttxt stsd contains display flags, justification, background
|
// ttxt stsd contains display flags, justification, background
|
||||||
// color, fonts, and default styles, so fake an atom to read it
|
// color, fonts, and default styles, so fake an atom to read it
|
||||||
MOVAtom fake_atom = { .size = size - (url_ftell(pb) - start_pos) };
|
MOVAtom fake_atom = { .size = size - (url_ftell(pb) - start_pos) };
|
||||||
|
if (format != AV_RL32("mp4s")) // mp4s contains a regular esds atom
|
||||||
mov_read_glbl(c, pb, fake_atom);
|
mov_read_glbl(c, pb, fake_atom);
|
||||||
st->codec->codec_id= id;
|
st->codec->codec_id= id;
|
||||||
st->codec->width = sc->width;
|
st->codec->width = sc->width;
|
||||||
|
|
Loading…
Add table
Reference in a new issue