[FFmpeg-devel] [PATCH] Fix build with --disable-swscale
Måns Rullgård
mans
Sat May 8 00:13:03 CEST 2010
Vladimir Pantelic <pan at nt.tu-darmstadt.de> writes:
> M?ns Rullg?rd wrote:
>
>> Alternative:
>>
>> diff --git a/cmdutils.c b/cmdutils.c
>> index 7a58cea..80917c3 100644
>> --- a/cmdutils.c
>> +++ b/cmdutils.c
>> @@ -609,6 +609,11 @@ void show_pix_fmts(void)
>> "FLAGS NAME NB_COMPONENTS BITS_PER_PIXEL\n"
>> "-----\n");
>>
>> +#if !CONFIG_SWSCALE
>> +# define sws_isSupportedInput(x) 0
>> +# define sws_isSupportedOutput(x) 0
>> +#endif
>> +
>> for (pix_fmt = 0; pix_fmt< PIX_FMT_NB; pix_fmt++) {
>> const AVPixFmtDescriptor *pix_desc =&av_pix_fmt_descriptors[pix_fmt];
>> printf("%c%c%c%c%c %-16s %d %2d\n",
>>
>
> attached
>
>
> Index: cmdutils.c
> ===================================================================
> --- cmdutils.c (revision 23034)
> +++ cmdutils.c (working copy)
> @@ -570,8 +570,10 @@
> AVBitStreamFilter *bsf=NULL;
>
> printf("Bitstream filters:\n");
> +#if CONFIG_BSFS
> while((bsf = av_bitstream_filter_next(bsf)))
> printf("%s\n", bsf->name);
> +#endif
> printf("\n");
> }
>
> @@ -580,8 +582,10 @@
> URLProtocol *up=NULL;
>
> printf("Supported file protocols:\n");
> +#if CONFIG_PROTOCOLS
> while((up = av_protocol_next(up)))
> printf("%s\n", up->name);
> +#endif
> }
On closer inspection, those functions are included unconditionally in
lavc resp. lavf, and nothing using cmdutils.c is built when either of
those is disabled.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list