[FFmpeg-cvslog] r21597 - trunk/libavfilter/vf_scale.c
stefano
subversion
Mon Feb 1 20:50:18 CET 2010
Author: stefano
Date: Mon Feb 1 20:50:17 2010
New Revision: 21597
Log:
Use pixel format descriptors to check if the input format is paletted.
Modified:
trunk/libavfilter/vf_scale.c
Modified: trunk/libavfilter/vf_scale.c
==============================================================================
--- trunk/libavfilter/vf_scale.c Mon Feb 1 17:02:46 2010 (r21596)
+++ trunk/libavfilter/vf_scale.c Mon Feb 1 20:50:17 2010 (r21597)
@@ -129,11 +129,7 @@ static int config_props(AVFilterLink *ou
av_log(ctx, AV_LOG_INFO, "w:%d h:%d fmt:%s\n",
outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name);
- scale->input_is_pal = inlink->format == PIX_FMT_PAL8 ||
- inlink->format == PIX_FMT_BGR4_BYTE ||
- inlink->format == PIX_FMT_RGB4_BYTE ||
- inlink->format == PIX_FMT_BGR8 ||
- inlink->format == PIX_FMT_RGB8;
+ scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL;
return !scale->sws;
}
More information about the ffmpeg-cvslog
mailing list