diff mbox

[FFmpeg-devel,2/2] lavc/v4l2: Mark static const tables as such

Message ID 20171003200814.23120-2-sw@jkqxz.net
State Accepted
Commit 8da5af258423db4e24832b4a880cf6b78d410262
Headers show

Commit Message

Mark Thompson Oct. 3, 2017, 8:08 p.m. UTC
---
 libavcodec/v4l2_m2m_enc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer Oct. 4, 2017, 9:35 p.m. UTC | #1
On Tue, Oct 03, 2017 at 09:08:14PM +0100, Mark Thompson wrote:
> ---
>  libavcodec/v4l2_m2m_enc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

LGTM

thx

[...]
diff mbox

Patch

diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c
index 9f59be6efb..b0d5a3bd15 100644
--- a/libavcodec/v4l2_m2m_enc.c
+++ b/libavcodec/v4l2_m2m_enc.c
@@ -93,7 +93,7 @@  static inline int v4l2_get_ext_ctrl(V4L2m2mContext *s, unsigned int id, signed i
 
 static inline unsigned int v4l2_h264_profile_from_ff(int p)
 {
-    struct h264_profile  {
+    static const struct h264_profile  {
         unsigned int ffmpeg_val;
         unsigned int v4l2_val;
     } profile[] = {
@@ -120,7 +120,7 @@  static inline unsigned int v4l2_h264_profile_from_ff(int p)
 
 static inline int v4l2_mpeg4_profile_from_ff(int p)
 {
-    struct mpeg4_profile {
+    static const struct mpeg4_profile {
         unsigned int ffmpeg_val;
         unsigned int v4l2_val;
     } profile[] = {