summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/isom.c2
-rw-r--r--libavformat/mov.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c
index c0af2d2bbe..5a67aec8ea 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -169,7 +169,7 @@ const AVCodecTag codec_movaudio_tags[] = {
};
const AVCodecTag ff_codec_movsubtitle_tags[] = {
- { CODEC_ID_TEXT, MKTAG('t', 'e', 'x', 't') },
+ { CODEC_ID_MOV_TEXT, MKTAG('t', 'e', 'x', 't') },
{ CODEC_ID_NONE, 0 },
};
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;