changeset 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 3f766c507a70
children 305536ce781f
files avcodec.h imgconvert.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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;