Mercurial > libavcodec.hg
comparison dnxhdenc.c @ 9618:85ad5d68ec98 libavcodec
data parameter of dnxhd_encode_picture() should not be const.
Fixes "dnxhdenc.c:805: warning: initialization from incompatible pointer type".
patch by Daniel Verkamp, daniel drv nu
author | diego |
---|---|
date | Fri, 08 May 2009 19:41:21 +0000 |
parents | 7a463923ecd1 |
children | 9a670cfd1941 |
comparison
equal
deleted
inserted
replaced
9617:f4a60e47193f | 9618:85ad5d68ec98 |
---|---|
709 | 709 |
710 ctx->frame.interlaced_frame = frame->interlaced_frame; | 710 ctx->frame.interlaced_frame = frame->interlaced_frame; |
711 ctx->cur_field = frame->interlaced_frame && !frame->top_field_first; | 711 ctx->cur_field = frame->interlaced_frame && !frame->top_field_first; |
712 } | 712 } |
713 | 713 |
714 static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, const void *data) | 714 static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
715 { | 715 { |
716 DNXHDEncContext *ctx = avctx->priv_data; | 716 DNXHDEncContext *ctx = avctx->priv_data; |
717 int first_field = 1; | 717 int first_field = 1; |
718 int offset, i, ret; | 718 int offset, i, ret; |
719 | 719 |