[FFmpeg-devel] [PATCH]Fix compilation with --disable-everything --enable-outdev=alsa

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Sep 18 19:45:00 CEST 2011


Hi!

Ticket #483 contains a patch, attached is an alternative, one of them should 
be applied.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
index 0943ab0..ba4090c 100644
--- a/libavdevice/alsa-audio-common.c
+++ b/libavdevice/alsa-audio-common.c
@@ -319,7 +319,9 @@ av_cold int ff_alsa_close(AVFormatContext *s1)
     AlsaData *s = s1->priv_data;
 
     av_freep(&s->reorder_buf);
+#if CONFIG_ALSA_INDEV
     ff_timefilter_destroy(s->timefilter);
+#endif
     snd_pcm_close(s->h);
     return 0;
 }


More information about the ffmpeg-devel mailing list