Mercurial > libavcodec.hg
comparison imgconvert.c @ 9902:9bdf9fe9018c libavcodec
Fix argument type mismatches for av_picture_crop and av_picture_fill
author | mru |
---|---|
date | Wed, 01 Jul 2009 10:36:18 +0000 |
parents | d42979883bb1 |
children | 266bf83f634d |
comparison
equal
deleted
inserted
replaced
9901:3f766c507a70 | 9902:9bdf9fe9018c |
---|---|
1286 ps->color_type == FF_COLOR_YUV_JPEG) && | 1286 ps->color_type == FF_COLOR_YUV_JPEG) && |
1287 ps->pixel_type == FF_PIXEL_PLANAR; | 1287 ps->pixel_type == FF_PIXEL_PLANAR; |
1288 } | 1288 } |
1289 | 1289 |
1290 int av_picture_crop(AVPicture *dst, const AVPicture *src, | 1290 int av_picture_crop(AVPicture *dst, const AVPicture *src, |
1291 int pix_fmt, int top_band, int left_band) | 1291 enum PixelFormat pix_fmt, int top_band, int left_band) |
1292 { | 1292 { |
1293 int y_shift; | 1293 int y_shift; |
1294 int x_shift; | 1294 int x_shift; |
1295 | 1295 |
1296 if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB || !is_yuv_planar(&pix_fmt_info[pix_fmt])) | 1296 if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB || !is_yuv_planar(&pix_fmt_info[pix_fmt])) |