comparison imgconvert.c @ 9483:5e27a38aeb81 libavcodec

Remove a useless assignment in img_get_alpha_info() found by CSA.
author michael
date Fri, 17 Apr 2009 18:22:19 +0000
parents b84bf6239c58
children d42979883bb1
comparison
equal deleted inserted replaced
9482:b84bf6239c58 9483:5e27a38aeb81
1333 enum PixelFormat pix_fmt, int width, int height) 1333 enum PixelFormat pix_fmt, int width, int height)
1334 { 1334 {
1335 const PixFmtInfo *pf = &pix_fmt_info[pix_fmt]; 1335 const PixFmtInfo *pf = &pix_fmt_info[pix_fmt];
1336 int ret; 1336 int ret;
1337 1337
1338 pf = &pix_fmt_info[pix_fmt];
1339 /* no alpha can be represented in format */ 1338 /* no alpha can be represented in format */
1340 if (!pf->is_alpha) 1339 if (!pf->is_alpha)
1341 return 0; 1340 return 0;
1342 switch(pix_fmt) { 1341 switch(pix_fmt) {
1343 case PIX_FMT_PAL8: 1342 case PIX_FMT_PAL8: