]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/snowenc: fix constness of the AVFrame argument in encode_frame()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Sep 2013 03:17:34 +0000 (05:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Sep 2013 03:22:45 +0000 (05:22 +0200)
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>
libavcodec/snowenc.c

index 250057521deba03e6443355b1b397fb67928de64..9a2d2195f34e44dc133b99fd9157b8cef709b8df 100644 (file)
@@ -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;