mmaldec: Fix compilation after 2fcb0090

Message ID 20171220074537.8550-1-martin@martin.st
State Committed
Commit 2beba58e0e4bda688bf96e12413231607ceafdd4
Headers show

Commit Message

Martin Storsjö Dec. 20, 2017, 7:45 a.m.
---
 libavcodec/mmaldec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

wm4 Dec. 20, 2017, 7:58 a.m. | #1
On Wed, 20 Dec 2017 09:45:37 +0200
Martin Storsjö <martin@martin.st> wrote:

> ---
>  libavcodec/mmaldec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
> index 10a48d3e0f..504e765d07 100644
> --- a/libavcodec/mmaldec.c
> +++ b/libavcodec/mmaldec.c
> @@ -788,7 +788,7 @@ static int ffmmal_decode(AVCodecContext *avctx, void *data, int *got_frame,
>      return ret;
>  }
>  
> -static const AVCodecHWConfigInternal *mmal_hw_configs = {
> +static const AVCodecHWConfigInternal *mmal_hw_configs[] = {
>      HW_CONFIG_INTERNAL(MMAL),
>      NULL
>  };

LGTM

Patch

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 10a48d3e0f..504e765d07 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -788,7 +788,7 @@  static int ffmmal_decode(AVCodecContext *avctx, void *data, int *got_frame,
     return ret;
 }
 
-static const AVCodecHWConfigInternal *mmal_hw_configs = {
+static const AVCodecHWConfigInternal *mmal_hw_configs[] = {
     HW_CONFIG_INTERNAL(MMAL),
     NULL
 };