[FFmpeg-cvslog] avcodec/snowenc: fix constness of the AVFrame argument in encode_frame()

Michael Niedermayer git at videolan.org
Sun Sep 8 05:24:23 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep  8 05:17:34 2013 +0200| [ea538b0d64cf30942ea04631082f8814aa045031] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ea538b0d64cf30942ea04631082f8814aa045031
---

 libavcodec/snowenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 2500575..9a2d219 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;



More information about the ffmpeg-cvslog mailing list