[FFmpeg-cvslog] r26212 - trunk/cmdutils.c
stefano
subversion
Tue Jan 4 15:00:07 CET 2011
Author: stefano
Date: Tue Jan 4 15:00:06 2011
New Revision: 26212
Log:
Disable initialization of the swscale sws_opts context in
cmdutils.c:init_opts(), in the case libswscale compilation is not
enabled.
Fix ffprobe and ffserver compilation with --disable-swscale.
Modified:
trunk/cmdutils.c
Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c Tue Jan 4 13:35:39 2011 (r26211)
+++ trunk/cmdutils.c Tue Jan 4 15:00:06 2011 (r26212)
@@ -63,7 +63,9 @@ void init_opts(void)
for (i = 0; i < AVMEDIA_TYPE_NB; i++)
avcodec_opts[i] = avcodec_alloc_context2(i);
avformat_opts = avformat_alloc_context();
+#if CONFIG_SWSCALE
sws_opts = sws_getContext(16, 16, 0, 16, 16, 0, SWS_BICUBIC, NULL, NULL, NULL);
+#endif
}
void uninit_opts(void)
@@ -73,7 +75,9 @@ void uninit_opts(void)
av_freep(&avcodec_opts[i]);
av_freep(&avformat_opts->key);
av_freep(&avformat_opts);
+#if CONFIG_SWSCALE
av_freep(&sws_opts);
+#endif
}
void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
More information about the ffmpeg-cvslog
mailing list