summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-01 10:36:18 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-01 10:36:18 +0000
commit4a30fff60db14e0ee43d103898901b72e3fd3ee6 (patch)
tree31c2ce1096ef8db67baefb7d778f0fbe93ff332a /libavcodec
parentfb0a835ff4704965b029dbce3d0e2edf79e0063a (diff)
Fix argument type mismatches for av_picture_crop and av_picture_fill
Originally committed as revision 19314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h2
-rw-r--r--libavcodec/imgconvert.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 70b6c62917..8eb7c3c27c 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2902,7 +2902,7 @@ void avpicture_free(AVPicture *picture);
* @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 --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 3f457fe757..a2db471222 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -1288,7 +1288,7 @@ static inline int is_yuv_planar(const PixFmtInfo *ps)
}
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;