Prevents infinite flushing same last output.
Unified · Split
| @@ -900,6 +900,7 @@ static int decode(AVCodecContext *avctx, AVSubtitle *sub, · 899 unmodified lines | ||
| 900 | 900 | ret = ff_ass_add_rect2(sub, ctx->buffer[bidx].str, ctx->readorder++, 0, NULL, NULL, &nb_rect_allocated); |
| 901 | 901 | if (ret < 0) |
| 902 | 902 | return ret; |
| 903 | + av_bprint_clear(&ctx->buffer[bidx]); | |
| 903 | 904 | sub->pts = ctx->buffer_time[1]; |
| 904 | 905 | sub->end_display_time = av_rescale_q(ctx->buffer_time[1] - ctx->buffer_time[0], |
| 905 | 906 | AV_TIME_BASE_Q, ms_tb); |