Skip to content

Commit

Permalink
a52: fix NULL pointer dereference in a52_dump()
Browse files Browse the repository at this point in the history
Fixes: alsa-project#35
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
perexg committed Nov 2, 2021
1 parent 23624e1 commit 286378b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a52/pcm_a52.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ static void a52_dump(snd_pcm_ioplug_t *io, snd_output_t *out)
snd_output_printf(out, "Its setup is:\n");
snd_pcm_dump_setup(pcm, out);
snd_output_printf(out, " %-13s: %s\n", "av_format", av_get_sample_fmt_name(rec->av_format));
snd_output_printf(out, " %-13s: %i\n", "av_frame_size", rec->avctx->frame_size);
snd_output_printf(out, " %-13s: %i\n", "av_frame_size", rec->avctx ? rec->avctx->frame_size : -1);
snd_output_printf(out, " %-13s: %i\n", "remain", rec->remain);
snd_output_printf(out, " %-13s: %i\n", "filled", rec->filled);
snd_output_printf(out, "Slave: ");
Expand Down

0 comments on commit 286378b

Please sign in to comment.