|
|
@ -60,7 +60,7 @@ static int64_t read_ts(const char *s) |
|
|
|
static int webvtt_read_header(AVFormatContext *s) |
|
|
|
static int webvtt_read_header(AVFormatContext *s) |
|
|
|
{ |
|
|
|
{ |
|
|
|
WebVTTContext *webvtt = s->priv_data; |
|
|
|
WebVTTContext *webvtt = s->priv_data; |
|
|
|
AVBPrint header, cue; |
|
|
|
AVBPrint cue; |
|
|
|
int res = 0; |
|
|
|
int res = 0; |
|
|
|
AVStream *st = avformat_new_stream(s, NULL); |
|
|
|
AVStream *st = avformat_new_stream(s, NULL); |
|
|
|
|
|
|
|
|
|
|
@ -71,7 +71,6 @@ static int webvtt_read_header(AVFormatContext *s) |
|
|
|
st->codecpar->codec_id = AV_CODEC_ID_WEBVTT; |
|
|
|
st->codecpar->codec_id = AV_CODEC_ID_WEBVTT; |
|
|
|
st->disposition |= webvtt->kind; |
|
|
|
st->disposition |= webvtt->kind; |
|
|
|
|
|
|
|
|
|
|
|
av_bprint_init(&header, 0, AV_BPRINT_SIZE_UNLIMITED); |
|
|
|
|
|
|
|
av_bprint_init(&cue, 0, AV_BPRINT_SIZE_UNLIMITED); |
|
|
|
av_bprint_init(&cue, 0, AV_BPRINT_SIZE_UNLIMITED); |
|
|
|
|
|
|
|
|
|
|
|
for (;;) { |
|
|
|
for (;;) { |
|
|
@ -166,7 +165,6 @@ static int webvtt_read_header(AVFormatContext *s) |
|
|
|
|
|
|
|
|
|
|
|
end: |
|
|
|
end: |
|
|
|
av_bprint_finalize(&cue, NULL); |
|
|
|
av_bprint_finalize(&cue, NULL); |
|
|
|
av_bprint_finalize(&header, NULL); |
|
|
|
|
|
|
|
return res; |
|
|
|
return res; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|