Mercurial > libavcodec.hg
diff dnxhdenc.c @ 6218:dfdff1ca78a7 libavcodec
consts
I have underestimated this a little, and these are just some ...
author | michael |
---|---|
date | Fri, 01 Feb 2008 03:26:31 +0000 |
parents | bb4b486c6775 |
children | a4104482ceef |
line wrap: on
line diff
--- a/dnxhdenc.c Fri Feb 01 02:36:09 2008 +0000 +++ b/dnxhdenc.c Fri Feb 01 03:26:31 2008 +0000 @@ -693,7 +693,7 @@ 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 @@ 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 @@ 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;