diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 03:26:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 03:26:31 +0000 |
commit | 7993df65275a9a9bf0a04c37d1aa31901d3ebb0c (patch) | |
tree | 12ac05b322190d0bbbf660aef2e280128d15020a /libavcodec/dnxhdenc.c | |
parent | ff794171c97ae123cac041726e9c8bdc36c7e6c0 (diff) | |
download | ffmpeg-7993df65275a9a9bf0a04c37d1aa31901d3ebb0c.tar.gz |
consts
I have underestimated this a little, and these are just some ...
Originally committed as revision 11708 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 9ca842e1d7..3da6a1a67b 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -693,7 +693,7 @@ static int dnxhd_find_qscale(DNXHDEncContext *ctx) static int dnxhd_rc_cmp(const void *a, const void *b) { - return ((RCCMPEntry *)b)->value - ((RCCMPEntry *)a)->value; + return ((const RCCMPEntry *)b)->value - ((const RCCMPEntry *)a)->value; } static int dnxhd_encode_fast(AVCodecContext *avctx, DNXHDEncContext *ctx) @@ -733,7 +733,7 @@ static int dnxhd_encode_fast(AVCodecContext *avctx, DNXHDEncContext *ctx) return 0; } -static void dnxhd_load_picture(DNXHDEncContext *ctx, AVFrame *frame) +static void dnxhd_load_picture(DNXHDEncContext *ctx, const AVFrame *frame) { int i; @@ -753,7 +753,7 @@ static void dnxhd_load_picture(DNXHDEncContext *ctx, AVFrame *frame) ctx->cur_field = frame->interlaced_frame && !frame->top_field_first; } -static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) +static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, const void *data) { DNXHDEncContext *ctx = avctx->priv_data; int first_field = 1; |