diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2011-03-31 18:49:07 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2011-03-31 18:49:07 +0200 |
commit | 1e96d4c71e68fdefc284d7dfb9701d1378a024c8 (patch) | |
tree | ed74ff68d88efe543507769e39908a8ad4656058 | |
parent | 1caa4123bd83f8b1f8a4e11a8d8539be7d54b105 (diff) | |
download | ffmpeg-1e96d4c71e68fdefc284d7dfb9701d1378a024c8.tar.gz |
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.
-rw-r--r-- | libavdevice/alsa-audio-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index 8e3535e21e..bbe2c87720 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -234,7 +234,7 @@ av_cold int ff_alsa_close(AVFormatContext *s1) { AlsaData *s = s1->priv_data; - av_freep(s->reorder_buf); + av_freep(&s->reorder_buf); snd_pcm_close(s->h); return 0; } |