avcodec/dnxhdenc: make header_prefix static const
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Aug 2013 21:10:42 +0000 (23:10 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Aug 2013 21:10:42 +0000 (23:10 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dnxhdenc.c

index 0af948e..6bfd88a 100644 (file)
@@ -353,7 +353,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
 static int dnxhd_write_header(AVCodecContext *avctx, uint8_t *buf)
 {
     DNXHDEncContext *ctx = avctx->priv_data;
 static int dnxhd_write_header(AVCodecContext *avctx, uint8_t *buf)
 {
     DNXHDEncContext *ctx = avctx->priv_data;
-    const uint8_t header_prefix[5] = { 0x00,0x00,0x02,0x80,0x01 };
+    static const uint8_t header_prefix[5] = { 0x00,0x00,0x02,0x80,0x01 };
 
     memset(buf, 0, 640);
 
 
     memset(buf, 0, 640);