diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2007-12-29 20:49:03 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-12-29 20:49:03 +0000 |
commit | f9a9b3509c28ef78cd9d0e59c4263442d1205099 (patch) | |
tree | 458168fd8e2ef72133f26db33b687b21ce618a84 /libavformat/matroskadec.c | |
parent | 243cc4c34a8aca1025160a4b8f6c08c6419bf3b6 (diff) | |
download | ffmpeg-streaming-f9a9b3509c28ef78cd9d0e59c4263442d1205099.zip ffmpeg-streaming-f9a9b3509c28ef78cd9d0e59c4263442d1205099.tar.gz |
export raw SSA tracks with their own codec ID (patch by Evgeniy Stepanov)
Originally committed as revision 11352 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 8d201b6..f738115 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -94,8 +94,6 @@ typedef struct MatroskaAudioTrack { typedef struct MatroskaSubtitleTrack { MatroskaTrack track; - - int ass; //.. } MatroskaSubtitleTrack; @@ -2160,15 +2158,6 @@ matroska_read_header (AVFormatContext *s, } } - else if (codec_id == CODEC_ID_TEXT) { - MatroskaSubtitleTrack *subtrack=(MatroskaSubtitleTrack *)track; - if (!strcmp(track->codec_id, "S_TEXT/ASS") || - !strcmp(track->codec_id, "S_TEXT/SSA") || - !strcmp(track->codec_id, "S_ASS") || - !strcmp(track->codec_id, "S_SSA")) - subtrack->ass = 1; - } - if (codec_id == CODEC_ID_NONE) { av_log(matroska->ctx, AV_LOG_INFO, "Unknown/unsupported CodecID %s.\n", @@ -2438,14 +2427,6 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, } else { int offset = 0; - if (st->codec->codec_id == CODEC_ID_TEXT - && ((MatroskaSubtitleTrack *)(matroska->tracks[track]))->ass) { - int i; - for (i=0; i<8 && data[offset]; offset++) - if (data[offset] == ',') - i++; - } - pkt = av_mallocz(sizeof(AVPacket)); /* XXX: prevent data copy... */ if (av_new_packet(pkt, lace_size[n]-offset) < 0) { |