Mercurial > libavformat.hg
diff mov.c @ 2969:f3a3115a96e4 libavformat
Set correct codec type and id for text subtitles.
fixes http://samples.mplayerhq.hu/mov/subtitles-embedded/subtitlemovie.mov
closes issue341
author | michael |
---|---|
date | Sat, 26 Jan 2008 20:30:03 +0000 |
parents | bd458b341e40 |
children | ed7e36770ee5 |
line wrap: on
line diff
--- a/mov.c Sat Jan 26 20:07:57 2008 +0000 +++ b/mov.c Sat Jan 26 20:30:03 2008 +0000 @@ -624,6 +624,11 @@ id = codec_get_id(codec_bmp_tags, format); if (id > 0) st->codec->codec_type = CODEC_TYPE_VIDEO; + else if(st->codec->codec_type == CODEC_TYPE_DATA){ + id = codec_get_id(ff_codec_movsubtitle_tags, format); + if(id > 0) + st->codec->codec_type = CODEC_TYPE_SUBTITLE; + } } dprintf(c->fc, "size=%d 4CC= %c%c%c%c codec_type=%d\n", size,