Skip to content

Commit

Permalink
fix 5692dc7: make test more strict (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Oct 12, 2023
1 parent 5692dc7 commit 092904b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/filters/reframe_ac3.c
Expand Up @@ -480,12 +480,11 @@ GF_Err ac3dmx_process(GF_Filter *filter)
cts = GF_FILTER_NO_TS;
}

if (!ctx->in_seek && remain >= ctx->hdr.framesize) {
if (!ctx->in_seek && remain >= sync_pos + ctx->hdr.framesize) {
dst_pck = gf_filter_pck_new_alloc(ctx->opid, ctx->hdr.framesize, &output);
if (!dst_pck) return GF_OUT_OF_MEM;

if (ctx->src_pck) gf_filter_pck_merge_properties(ctx->src_pck, dst_pck);

memcpy(output, sync, ctx->hdr.framesize);
gf_filter_pck_set_dts(dst_pck, ctx->cts);
gf_filter_pck_set_cts(dst_pck, ctx->cts);
Expand Down

0 comments on commit 092904b

Please sign in to comment.