Skip to content

Commit

Permalink
fix 3602a5d to take bytes_skipped into account (#2396)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Apr 24, 2023
1 parent 72c4919 commit 851560e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filters/reframe_mp3.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ GF_Err mp3_dmx_process(GF_Filter *filter)
}

if (!ctx->in_seek) {
if (size > remain) {
GF_LOG(GF_LOG_WARNING, GF_LOG_MEDIA, ("[MP3Dmx] truncated frame of size %u (remains %u)\n", size, remain));
if (bytes_skipped + size > remain) {
GF_LOG(GF_LOG_WARNING, GF_LOG_MEDIA, ("[MP3Dmx] truncated frame of size %u (remains %d)\n", size, remain-bytes_skipped));
break;
}
dst_pck = gf_filter_pck_new_alloc(ctx->opid, size, &output);
Expand Down

0 comments on commit 851560e

Please sign in to comment.