Commit 0aa5c5a8 authored by Clément Bœsch's avatar Clément Bœsch

avformat/assdec: reindent after previous commit

parent 9ec52e55
...@@ -124,28 +124,27 @@ static int ass_read_header(AVFormatContext *s) ...@@ -124,28 +124,27 @@ static int ass_read_header(AVFormatContext *s)
av_bprint_init(&line, 0, AV_BPRINT_SIZE_UNLIMITED); av_bprint_init(&line, 0, AV_BPRINT_SIZE_UNLIMITED);
av_bprint_init(&rline, 0, AV_BPRINT_SIZE_UNLIMITED); av_bprint_init(&rline, 0, AV_BPRINT_SIZE_UNLIMITED);
// TODO reindent
for (;;) { for (;;) {
int64_t pos = get_line(&line, &tr); int64_t pos = get_line(&line, &tr);
int64_t ts_start = AV_NOPTS_VALUE; int64_t ts_start = AV_NOPTS_VALUE;
int duration = -1; int duration = -1;
AVPacket *sub; AVPacket *sub;
if (!line.str[0]) // EOF if (!line.str[0]) // EOF
break; break;
if (read_dialogue(ass, &rline, line.str, &ts_start, &duration) < 0) { if (read_dialogue(ass, &rline, line.str, &ts_start, &duration) < 0) {
av_bprintf(&header, "%s", line.str); av_bprintf(&header, "%s", line.str);
continue; continue;
} }
sub = ff_subtitles_queue_insert(&ass->q, rline.str, rline.len, 0); sub = ff_subtitles_queue_insert(&ass->q, rline.str, rline.len, 0);
if (!sub) { if (!sub) {
res = AVERROR(ENOMEM); res = AVERROR(ENOMEM);
goto end; goto end;
} }
sub->pos = pos; sub->pos = pos;
sub->pts = ts_start; sub->pts = ts_start;
sub->duration = duration; sub->duration = duration;
} }
av_bprint_finalize(&line, NULL); av_bprint_finalize(&line, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment