Exemple #1
0
static void reset(struct sd *sd)
{
    struct sd_ass_priv *ctx = sd->priv;
    if (sd->opts->sub_clear_on_seek) {
        ass_flush_events(ctx->ass_track);
        ctx->num_seen_packets = 0;
    }
    if (ctx->converter)
        lavc_conv_reset(ctx->converter);
}
Exemple #2
0
static void reset(struct sd *sd)
{
    struct sd_ass_priv *ctx = sd->priv;
    if (sd->opts->sub_clear_on_seek || ctx->duration_unknown) {
        ass_flush_events(ctx->ass_track);
        ctx->num_seen_packets = 0;
        sd->preload_ok = false;
    }
    if (ctx->converter)
        lavc_conv_reset(ctx->converter);
}