diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-01-27 19:57:04 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-01-27 19:57:04 +0000 |
commit | cc8c2c6ab341bbb38179614ffd54875729a82deb (patch) | |
tree | 73d2016c3f2c5463cbfeff7d9b50fc1e8a3380da /libavformat/mov.c | |
parent | cf6cb7c562d0dca489b82c074da8d563df596469 (diff) |
Add CODEC_ID_MOV_TEXT and use it instead of modifying the stream in the mov demuxer.
Originally committed as revision 11638 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index cc3dc70211..f39d9a227f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1543,12 +1543,6 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) } else { #endif av_get_packet(s->pb, pkt, sample->size); - if (s->streams[sc->ffindex]->codec->codec_id == CODEC_ID_TEXT) { - int textlen = FFMIN(AV_RB16(pkt->data), sample->size - 2); - textlen = FFMAX(textlen, 0); - memmove(pkt->data, pkt->data + 2, textlen); - pkt->size = textlen; - } #ifdef CONFIG_DV_DEMUXER if (mov->dv_demux) { void *pkt_destruct_func = pkt->destruct; |