[FFmpeg-cvslog] avformat/flvdec: Add TYPE_ONCAPTIONINFO

Michael Niedermayer git at videolan.org
Fri Jun 5 21:56:54 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun  5 21:18:29 2015 +0200| [790a3cdf76870d5b333d59d1df489e47d56242b8] | committer: Michael Niedermayer

avformat/flvdec: Add TYPE_ONCAPTIONINFO

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=790a3cdf76870d5b333d59d1df489e47d56242b8
---

 libavformat/flvdec.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 0960077..4509575 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -547,6 +547,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream,
 
 #define TYPE_ONTEXTDATA 1
 #define TYPE_ONCAPTION 2
+#define TYPE_ONCAPTIONINFO 3
 #define TYPE_UNKNOWN 9
 
 static int flv_read_metabody(AVFormatContext *s, int64_t next_pos)
@@ -577,6 +578,9 @@ static int flv_read_metabody(AVFormatContext *s, int64_t next_pos)
     if (!strcmp(buffer, "onCaption"))
         return TYPE_ONCAPTION;
 
+    if (!strcmp(buffer, "onCaptionInfo"))
+        return TYPE_ONCAPTIONINFO;
+
     if (strcmp(buffer, "onMetaData") && strcmp(buffer, "onCuePoint"))
         return TYPE_UNKNOWN;
 



More information about the ffmpeg-cvslog mailing list