[FFmpeg-devel] [PATCH]Fix compilation with --disable-filter=buffer
Carl Eugen Hoyos
cehoyos
Sat May 22 14:03:16 CEST 2010
Hi!
A few unusual configure options lead to a link failure with ffmpeg_g:
LD ffmpeg_g
ffmpeg.o: In function `output_packet':
ffmpeg.c:1657: undefined reference to `av_vsrc_buffer_add_frame'
Please comment, Carl Eugen
-------------- next part --------------
Index: ffmpeg.c
===================================================================
--- ffmpeg.c (revision 23210)
+++ ffmpeg.c (working copy)
@@ -1651,14 +1651,14 @@
&buffer_to_free);
}
-#if CONFIG_AVFILTER
- if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && ist->input_video_filter) {
+ if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
+ ist->input_video_filter &&
+ CONFIG_BUFFER_FILTER) {
// add it to be filtered
av_vsrc_buffer_add_frame(ist->input_video_filter, &picture,
ist->pts,
ist->st->codec->sample_aspect_ratio);
}
-#endif
// preprocess audio (volume)
if (ist->st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
More information about the ffmpeg-devel
mailing list