avcodec/snow: make new_picture const
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Sep 2014 19:02:15 +0000 (21:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Sep 2014 19:02:37 +0000 (21:02 +0200)
Fixes "assignment discards const qualifier from pointer target type"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snow.h

index 0f75419..b6a8bf4 100644 (file)
@@ -117,7 +117,7 @@ typedef struct SnowContext{
     H264QpelContext h264qpel;
     MpegvideoEncDSPContext mpvencdsp;
     SnowDWTContext dwt;
     H264QpelContext h264qpel;
     MpegvideoEncDSPContext mpvencdsp;
     SnowDWTContext dwt;
-    AVFrame *new_picture;
+    const AVFrame *new_picture;
     AVFrame *input_picture;              ///< new_picture with the internal linesizes
     AVFrame *current_picture;
     AVFrame *last_picture[MAX_REF_FRAMES];
     AVFrame *input_picture;              ///< new_picture with the internal linesizes
     AVFrame *current_picture;
     AVFrame *last_picture[MAX_REF_FRAMES];