|
|
|
@@ -144,7 +144,7 @@ try_again: |
|
|
|
|
|
|
|
sub = ff_subtitles_queue_insert(&scc->q, out, i, 0); |
|
|
|
if (!sub) |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
goto fail; |
|
|
|
|
|
|
|
current_pos += i; |
|
|
|
sub->pos = current_pos; |
|
|
|
@@ -159,7 +159,7 @@ try_again: |
|
|
|
|
|
|
|
sub = ff_subtitles_queue_insert(&scc->q, out, i, 0); |
|
|
|
if (!sub) |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
goto fail; |
|
|
|
|
|
|
|
sub->pos = current_pos; |
|
|
|
sub->pts = ts_start; |
|
|
|
@@ -178,6 +178,9 @@ try_again: |
|
|
|
ff_subtitles_queue_finalize(s, &scc->q); |
|
|
|
|
|
|
|
return ret; |
|
|
|
fail: |
|
|
|
ff_subtitles_queue_clean(&scc->q); |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
} |
|
|
|
|
|
|
|
static int scc_read_packet(AVFormatContext *s, AVPacket *pkt) |
|
|
|
|