diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 21:18:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 21:56:09 +0200 |
commit | 790a3cdf76870d5b333d59d1df489e47d56242b8 (patch) | |
tree | 78eb73c115fcddf5b04a9e74d80523808f6cb944 /libavformat/flvdec.c | |
parent | b2fecce3c16e1ca54e171b789a9ff966f593717b (diff) | |
download | ffmpeg-790a3cdf76870d5b333d59d1df489e47d56242b8.tar.gz |
avformat/flvdec: Add TYPE_ONCAPTIONINFO
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 0960077851..4509575679 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; |