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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to