Skip to content

Commit

Permalink
fixed #1905
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Sep 1, 2021
1 parent ad18ece commit 5f2c2a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/filters/reframe_mpgvid.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,14 @@ GF_Err mpgviddmx_process(GF_Filter *filter)
mpgviddmx_enqueue_or_dispatch(ctx, dst_pck, GF_FALSE, GF_FALSE);
}

//parse headers
//not enough bytes to parse start code
if (remain<5) {
memcpy(ctx->hdr_store, start, remain);
ctx->bytes_in_header = remain;
break;
}

//parse headers
//we have a start code loaded, eg the data packet does not have a full start code at the beginning
if (sc_type_forced) {
gf_bs_reassign_buffer(ctx->bs, start + hdr_offset, remain - hdr_offset);
Expand Down

0 comments on commit 5f2c2a1

Please sign in to comment.