[FFmpeg-cvslog] avcodec/dnxhdenc: make header_prefix static const

Michael Niedermayer git at videolan.org
Fri Aug 2 23:26:57 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug  2 23:10:42 2013 +0200| [04c50cb3a0b91b43b8441129f5aecc06324f2764] | committer: Michael Niedermayer

avcodec/dnxhdenc: make header_prefix static const

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 0af948e..6bfd88a 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -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;
-    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);
 



More information about the ffmpeg-cvslog mailing list