On Wed, Jun 29, 2011 at 02:13:16PM -0700, Ronald S. Bultje wrote:
> 
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -525,7 +531,9 @@ static void print_all_libs_info(FILE* outstream, int 
> flags)
>      PRINT_LIB_INFO(outstream, avformat, AVFORMAT, flags);
>      PRINT_LIB_INFO(outstream, avdevice, AVDEVICE, flags);
>      PRINT_LIB_INFO(outstream, avfilter, AVFILTER, flags);
> +#if CONFIG_SWSCALE
>      PRINT_LIB_INFO(outstream, swscale,  SWSCALE,  flags);
> +#endif
>      PRINT_LIB_INFO(outstream, postproc, POSTPROC, flags);

The macro already takes care of this.

> --- a/configure
> +++ b/configure
> @@ -1486,7 +1486,7 @@ avformat_deps="avcodec"
>  
>  # programs
> -ffmpeg_deps="avcodec avformat swscale"
> +ffmpeg_deps="avcodec avformat"
>  ffmpeg_select="buffer_filter"
>  ffplay_deps="avcodec avformat swscale sdl"
>  ffplay_select="rdft"

The log message talks about ffmpeg *and* ffplay, but only ffmpeg_deps
are changed?

> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -1206,6 +1213,11 @@ static void do_video_out(AVFormatContext *s,
>          }
>          sws_scale(ost->img_resample_ctx, formatted_picture->data, 
> formatted_picture->linesize,
>                0, ost->resample_height, final_picture->data, 
> final_picture->linesize);
> +#else
> +        av_log(NULL, AV_LOG_ERROR,
> +               "Image resampling needed, please compile with swscale\n");
> +        exit(1);
> +#endif

Hmmm, well, that's why we require swscale for ffmpeg - what is the
grand plan here?  Does ffmpeg actually get used without swscale?

Diego
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to