theoraenc: Specify array size
authorEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 30 Mar 2012 10:02:37 +0000 (12:02 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 30 Mar 2012 10:02:37 +0000 (12:02 +0200)
Fixes error: initialization of flexible array member is not allowed

ext/theora/gsttheoraenc.c

index bb784c3..8fba25b 100644 (file)
@@ -530,7 +530,7 @@ theora_enc_get_supported_formats (void)
   static const struct
   {
     th_pixel_fmt pixelformat;
-    const char fourcc[];
+    const char fourcc[5];
   } formats[] = {
     {
     TH_PF_420, "I420"}, {