Revision cc8d87b7 libavformat/mov.c

View differences:

libavformat/mov.c
233 233
        st->codec->codec_id = CODEC_ID_MP2;
234 234
    else if(type == MKTAG('s', 'u', 'b', 'p')) {
235 235
        st->codec->codec_type = CODEC_TYPE_SUBTITLE;
236
        st->codec->codec_id = CODEC_ID_DVD_SUBTITLE;
237 236
    }
238 237
    get_be32(pb); /* component  manufacture */
239 238
    get_be32(pb); /* component flags */
......
788 787
                st->codec->bits_per_sample = bits_per_sample;
789 788
                sc->sample_size = (bits_per_sample >> 3) * st->codec->channels;
790 789
            }
790
        } else if(st->codec->codec_type==CODEC_TYPE_SUBTITLE){
791
            st->codec->codec_id= id;
791 792
        } else {
792 793
            /* other codec type, just skip (rtp, mp4s, tmcd ...) */
793 794
            url_fskip(pb, size - (url_ftell(pb) - start_pos));

Also available in: Unified diff