[FFmpeg-cvslog] r12292 - in trunk/libavformat: nutdec.c nutenc.c
michael
subversion
Mon Mar 3 00:11:36 CET 2008
Author: michael
Date: Mon Mar 3 00:11:36 2008
New Revision: 12292
Log:
subtitles (codec tag tables still missing ...)
Modified:
trunk/libavformat/nutdec.c
trunk/libavformat/nutenc.c
Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c (original)
+++ trunk/libavformat/nutdec.c Mon Mar 3 00:11:36 2008
@@ -325,8 +325,11 @@ static int decode_stream_header(NUTConte
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;
Modified: trunk/libavformat/nutenc.c
==============================================================================
--- trunk/libavformat/nutenc.c (original)
+++ trunk/libavformat/nutenc.c Mon Mar 3 00:11:36 2008
@@ -394,7 +394,7 @@ static int write_streamheader(NUTContext
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);
More information about the ffmpeg-cvslog
mailing list