From ea538b0d64cf30942ea04631082f8814aa045031 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Sep 2013 05:17:34 +0200 Subject: [PATCH] avcodec/snowenc: fix constness of the AVFrame argument in encode_frame() Some fields of the frame are changed to reflect encoder decissions like if its a keyframe. It thus cannot be constant. Signed-off-by: Michael Niedermayer --- libavcodec/snowenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 250057521d..9a2d2195f3 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1550,7 +1550,7 @@ static void calculate_visual_weight(SnowContext *s, Plane *p){ } static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, - const AVFrame *pict, int *got_packet) + AVFrame *pict, int *got_packet) { SnowContext *s = avctx->priv_data; RangeCoder * const c= &s->c;