mirror of https://git.ffmpeg.org/ffmpeg.git
ALSA: fix a stupid bad use of av_freep.
It caused a segfault when channel reordering was in use and the last chunk of data was not silent. Spotted and diagnosed by Carl Eugen Hoyos.
This commit is contained in:
parent
1caa4123bd
commit
1e96d4c71e
|
@ -234,7 +234,7 @@ av_cold int ff_alsa_close(AVFormatContext *s1)
|
||||||
{
|
{
|
||||||
AlsaData *s = s1->priv_data;
|
AlsaData *s = s1->priv_data;
|
||||||
|
|
||||||
av_freep(s->reorder_buf);
|
av_freep(&s->reorder_buf);
|
||||||
snd_pcm_close(s->h);
|
snd_pcm_close(s->h);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue