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 Feb 13, 2023
1 parent 3602a5d commit 1b77837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filters/reframe_mp3.c
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 1b77837

Please sign in to comment.