# HG changeset patch # User mru # Date 1246444578 0 # Node ID 9bdf9fe9018cc17afc198dc6c3204b37f290eea8 # Parent 3f766c507a705faeb0ae873fc20d0fab1e643859 Fix argument type mismatches for av_picture_crop and av_picture_fill diff -r 3f766c507a70 -r 9bdf9fe9018c avcodec.h --- a/avcodec.h Wed Jul 01 06:48:27 2009 +0000 +++ b/avcodec.h Wed Jul 01 10:36:18 2009 +0000 @@ -2902,7 +2902,7 @@ * @return size of the image data in bytes */ int avpicture_fill(AVPicture *picture, uint8_t *ptr, - int pix_fmt, int width, int height); + enum PixelFormat pix_fmt, int width, int height); int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size); diff -r 3f766c507a70 -r 9bdf9fe9018c imgconvert.c --- a/imgconvert.c Wed Jul 01 06:48:27 2009 +0000 +++ b/imgconvert.c Wed Jul 01 10:36:18 2009 +0000 @@ -1288,7 +1288,7 @@ } int av_picture_crop(AVPicture *dst, const AVPicture *src, - int pix_fmt, int top_band, int left_band) + enum PixelFormat pix_fmt, int top_band, int left_band) { int y_shift; int x_shift;