[FFmpeg-devel] [PATCH] lavf/mov: export chapter streams as private data

Rodger Combs rodger.combs at gmail.com
Fri Jan 8 00:14:26 CET 2016


This prevents consumers from showing chapters as if they were regular subtitle
streams.
---
 libavformat/mov.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 78081ce..77a4a71 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4418,6 +4418,9 @@ static void mov_read_chapters(AVFormatContext *s)
         return;
     }
 
+    // Reset the stream type to private data
+    st->codec->codec_type = AVMEDIA_TYPE_DATA;
+    st->codec->codec_id = AV_CODEC_ID_BIN_DATA;
     st->discard = AVDISCARD_ALL;
     sc = st->priv_data;
     cur_pos = avio_tell(sc->pb);
-- 
2.6.4



More information about the ffmpeg-devel mailing list