Skip to content

Commit

Permalink
scte35_dec: cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed Mar 20, 2024
1 parent bf0b41c commit f58b71e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/filters/dec_scte35.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ GF_Err scte35dec_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_rem
return GF_OK;
}

//Romain: valgrind
#if 0
static _finalize()
{
gf_filter_pid_drop_packet(ctx->opid);
}
#endif

static Bool scte35dec_process_event(GF_Filter *filter, const GF_FilterEvent *evt)
{
if (evt->base.type==GF_FEVT_ENCODE_HINTS) {
Expand All @@ -99,6 +91,7 @@ static void scte35dec_send_pck(SCTE35DecCtx *ctx, GF_FilterPacket *pck, u64 dts)
if (ctx->last_dts) {
gf_filter_pck_set_duration(pck, (u32)(dts - ctx->last_dts));
}
printf("Romain: send dts="LLU" dur="LLU"\n", ctx->last_dts, dts - ctx->last_dts);
gf_filter_pck_set_dts(pck, ctx->last_dts);
ctx->last_dts = dts;
gf_filter_pck_set_framing(pck, GF_TRUE, GF_TRUE);
Expand Down

0 comments on commit f58b71e

Please sign in to comment.