diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-08 07:17:34 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-08 07:22:45 +0400 |
commit | ea538b0d64cf30942ea04631082f8814aa045031 (patch) | |
tree | 03e10678427331b5622380ace7bf52b4a57bee47 | |
parent | ffde17e70fd9585775cd6cc79faebb5dc743d298 (diff) |
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 <michaelni@gmx.at>
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |