Skip to content

Commit

Permalink
fixed #1728
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Apr 8, 2021
1 parent 24c0988 commit b2db2f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/filters/reframe_latm.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ GF_Err latm_dmx_process(GF_Filter *filter)
GF_LATMDmxCtx *ctx = gf_filter_get_udta(filter);
GF_FilterPacket *pck, *dst_pck;
u32 pos;
u8 *data, *output;
u32 pck_size, prev_pck_size;
u8 *data=NULL, *output;
u32 pck_size=0, prev_pck_size;
u64 cts = GF_FILTER_NO_TS;

if (ctx->in_error)
Expand All @@ -475,10 +475,10 @@ GF_Err latm_dmx_process(GF_Filter *filter)
} else {
return GF_OK;
}
} else {
data = (char *) gf_filter_pck_get_data(pck, &pck_size);
}

data = (char *) gf_filter_pck_get_data(pck, &pck_size);

//input pid sets some timescale - we flushed pending data , update cts
if (ctx->timescale && pck) {
cts = gf_filter_pck_get_cts(pck);
Expand Down

0 comments on commit b2db2f9

Please sign in to comment.