Skip to content

Commit

Permalink
Fixed #2632
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Oct 13, 2023
1 parent 50a60b0 commit ca1b48f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/filters/reframe_rawpcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,14 @@ GF_Err pcmreframe_process(GF_Filter *filter)
}
wav_ok = GF_FALSE;
}
if (!ctx->ch) {
GF_LOG(GF_LOG_ERROR, GF_LOG_MEDIA, ("[PCMReframe] Channel count %d invalid in wave\n", ctx->ch));
wav_ok = GF_FALSE;
}
if (!ctx->sr) {
GF_LOG(GF_LOG_ERROR, GF_LOG_MEDIA, ("[PCMReframe] Samplerate %d invalid in wave\n", ctx->sr));
wav_ok = GF_FALSE;
}

ctx->wav_hdr_size = (u32) gf_bs_get_position(bs);

Expand Down

0 comments on commit ca1b48f

Please sign in to comment.