# HG changeset patch # User michael # Date 1201388273 0 # Node ID bc330130bdceb3227c4ec499a1e9ff44839cb4e8 # Parent 45ffd9c8b23a5d45314759c9e518fe557858f942 Set subtitle codec id correctly, i hope this does not break anything. diff -r 45ffd9c8b23a -r bc330130bdce mov.c --- a/mov.c Sat Jan 26 22:55:34 2008 +0000 +++ b/mov.c Sat Jan 26 22:57:53 2008 +0000 @@ -233,7 +233,6 @@ st->codec->codec_id = CODEC_ID_MP2; else if(type == MKTAG('s', 'u', 'b', 'p')) { st->codec->codec_type = CODEC_TYPE_SUBTITLE; - st->codec->codec_id = CODEC_ID_DVD_SUBTITLE; } get_be32(pb); /* component manufacture */ get_be32(pb); /* component flags */ @@ -788,6 +787,8 @@ st->codec->bits_per_sample = bits_per_sample; sc->sample_size = (bits_per_sample >> 3) * st->codec->channels; } + } else if(st->codec->codec_type==CODEC_TYPE_SUBTITLE){ + st->codec->codec_id= id; } else { /* other codec type, just skip (rtp, mp4s, tmcd ...) */ url_fskip(pb, size - (url_ftell(pb) - start_pos));