Mercurial > libavcodec.hg
comparison imgconvert.c @ 6350:8e63d869a904 libavcodec
typo fix: inited --> initialized
author | diego |
---|---|
date | Wed, 13 Feb 2008 09:26:10 +0000 |
parents | e65c0ac23ea5 |
children | afa99894d8d9 |
comparison
equal
deleted
inserted
replaced
6349:aed237dd11d8 | 6350:8e63d869a904 |
---|---|
2348 /* XXX: always use linesize. Return -1 if not supported */ | 2348 /* XXX: always use linesize. Return -1 if not supported */ |
2349 int img_convert(AVPicture *dst, int dst_pix_fmt, | 2349 int img_convert(AVPicture *dst, int dst_pix_fmt, |
2350 const AVPicture *src, int src_pix_fmt, | 2350 const AVPicture *src, int src_pix_fmt, |
2351 int src_width, int src_height) | 2351 int src_width, int src_height) |
2352 { | 2352 { |
2353 static int inited; | 2353 static int initialized; |
2354 int i, ret, dst_width, dst_height, int_pix_fmt; | 2354 int i, ret, dst_width, dst_height, int_pix_fmt; |
2355 const PixFmtInfo *src_pix, *dst_pix; | 2355 const PixFmtInfo *src_pix, *dst_pix; |
2356 const ConvertEntry *ce; | 2356 const ConvertEntry *ce; |
2357 AVPicture tmp1, *tmp = &tmp1; | 2357 AVPicture tmp1, *tmp = &tmp1; |
2358 | 2358 |
2360 dst_pix_fmt < 0 || dst_pix_fmt >= PIX_FMT_NB) | 2360 dst_pix_fmt < 0 || dst_pix_fmt >= PIX_FMT_NB) |
2361 return -1; | 2361 return -1; |
2362 if (src_width <= 0 || src_height <= 0) | 2362 if (src_width <= 0 || src_height <= 0) |
2363 return 0; | 2363 return 0; |
2364 | 2364 |
2365 if (!inited) { | 2365 if (!initialized) { |
2366 inited = 1; | 2366 initialized = 1; |
2367 img_convert_init(); | 2367 img_convert_init(); |
2368 } | 2368 } |
2369 | 2369 |
2370 dst_width = src_width; | 2370 dst_width = src_width; |
2371 dst_height = src_height; | 2371 dst_height = src_height; |