1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

subtitles (codec tag tables still missing ...)

Originally committed as revision 12292 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-03-02 23:11:36 +00:00
parent c6eed369d2
commit a048febdc4
2 changed files with 6 additions and 3 deletions

View File

@ -325,8 +325,11 @@ static int decode_stream_header(NUTContext *nut){
av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
break;
case 2:
// st->codec->codec_type = CODEC_TYPE_TEXT;
// break;
st->codec->codec_type = CODEC_TYPE_SUBTITLE;
// st->codec->codec_id = codec_get_id(codec_wav_tags, tmp); FIXME
if (st->codec->codec_id == CODEC_ID_NONE)
av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
break;
case 3:
st->codec->codec_type = CODEC_TYPE_DATA;
break;

View File

@ -394,7 +394,7 @@ static int write_streamheader(NUTContext *nut, ByteIOContext *bc, AVCodecContext
switch(codec->codec_type){
case CODEC_TYPE_VIDEO: put_v(bc, 0); break;
case CODEC_TYPE_AUDIO: put_v(bc, 1); break;
// case CODEC_TYPE_TEXT : put_v(bc, 2); break;
case CODEC_TYPE_SUBTITLE: put_v(bc, 2); break;
default : put_v(bc, 3); break;
}
put_v(bc, 4);