mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +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:
parent
c6eed369d2
commit
a048febdc4
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user