Revision d2a2b08c

View differences:

libavfilter/vf_scale.c
129 129
    av_log(ctx, AV_LOG_INFO, "w:%d h:%d fmt:%s\n",
130 130
           outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name);
131 131

  
132
    scale->input_is_pal = inlink->format == PIX_FMT_PAL8      ||
133
                          inlink->format == PIX_FMT_BGR4_BYTE ||
134
                          inlink->format == PIX_FMT_RGB4_BYTE ||
135
                          inlink->format == PIX_FMT_BGR8      ||
136
                          inlink->format == PIX_FMT_RGB8;
132
    scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL;
137 133

  
138 134
    return !scale->sws;
139 135
}

Also available in: Unified diff