diff libmpcodecs/vd_ffmpeg.c @ 29914:67b386883561

Add const to draw_slice argument to match what FFmpeg expects for draw_horiz_band.
author reimar
date Sun, 22 Nov 2009 13:18:12 +0000
parents 5dbbcdb2fb47
children 5cb79ad246f2
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Nov 22 13:14:39 2009 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Nov 22 13:18:12 2009 +0000
@@ -55,7 +55,7 @@
 
 static int get_buffer(AVCodecContext *avctx, AVFrame *pic);
 static void release_buffer(AVCodecContext *avctx, AVFrame *pic);
-static void draw_slice(struct AVCodecContext *s, AVFrame *src, int offset[4],
+static void draw_slice(struct AVCodecContext *s, const AVFrame *src, int offset[4],
                        int y, int type, int height);
 
 static enum PixelFormat get_format(struct AVCodecContext *avctx,
@@ -451,7 +451,7 @@
 }
 
 static void draw_slice(struct AVCodecContext *s,
-                        AVFrame *src, int offset[4],
+                        const AVFrame *src, int offset[4],
                         int y, int type, int height){
     sh_video_t *sh = s->opaque;
     uint8_t *source[MP_MAX_PLANES]= {src->data[0] + offset[0], src->data[1] + offset[1], src->data[2] + offset[2]};