1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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>
This commit is contained in:
Michael Niedermayer
2013-09-08 05:17:34 +02:00
parent ffde17e70f
commit ea538b0d64

View File

@@ -1550,7 +1550,7 @@ static void calculate_visual_weight(SnowContext *s, Plane *p){
} }
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pict, int *got_packet) AVFrame *pict, int *got_packet)
{ {
SnowContext *s = avctx->priv_data; SnowContext *s = avctx->priv_data;
RangeCoder * const c= &s->c; RangeCoder * const c= &s->c;