Skip to content

Commit

Permalink
aufile: check unsupported zero prm->ptime
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Jun 6, 2024
1 parent 8dfe534 commit 17b2c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aufile/aufile_src.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int aufile_src_alloc(struct ausrc_st **stp, const struct ausrc *as,
struct aufile_prm fprm;
int err;

if (!stp || !as || !prm)
if (!stp || !as || !prm || !prm->ptime)
return EINVAL;

if (prm->fmt != AUFMT_S16LE) {
Expand Down

0 comments on commit 17b2c43

Please sign in to comment.