[FFmpeg-cvslog] hwcontext: Mark local table static const

Mark Thompson git at videolan.org
Thu Nov 2 01:25:47 EET 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Tue Jun 13 22:27:31 2017 +0100| [4993a68f0f9285f92a42a54305dc0244665b7db4] | committer: Mark Thompson

hwcontext: Mark local table static const

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

 libavutil/hwcontext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c
index d82df56abf..6dc95bba15 100644
--- a/libavutil/hwcontext.c
+++ b/libavutil/hwcontext.c
@@ -50,7 +50,7 @@ static const HWContextType * const hw_table[] = {
     NULL,
 };
 
-const char *hw_type_names[] = {
+static const char *const hw_type_names[] = {
     [AV_HWDEVICE_TYPE_CUDA]   = "cuda",
     [AV_HWDEVICE_TYPE_DXVA2]  = "dxva2",
     [AV_HWDEVICE_TYPE_D3D11VA] = "d3d11va",



More information about the ffmpeg-cvslog mailing list