mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/flvdec: Add TYPE_ONCAPTIONINFO
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b2fecce3c1
commit
790a3cdf76
|
@ -547,6 +547,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream,
|
||||||
|
|
||||||
#define TYPE_ONTEXTDATA 1
|
#define TYPE_ONTEXTDATA 1
|
||||||
#define TYPE_ONCAPTION 2
|
#define TYPE_ONCAPTION 2
|
||||||
|
#define TYPE_ONCAPTIONINFO 3
|
||||||
#define TYPE_UNKNOWN 9
|
#define TYPE_UNKNOWN 9
|
||||||
|
|
||||||
static int flv_read_metabody(AVFormatContext *s, int64_t next_pos)
|
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"))
|
if (!strcmp(buffer, "onCaption"))
|
||||||
return TYPE_ONCAPTION;
|
return TYPE_ONCAPTION;
|
||||||
|
|
||||||
|
if (!strcmp(buffer, "onCaptionInfo"))
|
||||||
|
return TYPE_ONCAPTIONINFO;
|
||||||
|
|
||||||
if (strcmp(buffer, "onMetaData") && strcmp(buffer, "onCuePoint"))
|
if (strcmp(buffer, "onMetaData") && strcmp(buffer, "onCuePoint"))
|
||||||
return TYPE_UNKNOWN;
|
return TYPE_UNKNOWN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue