[libbluray-devel] Change BD_TEXTST_DATA string array to size to 1

tourettes git at videolan.org
Sun Feb 15 13:06:44 CET 2015


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Sun Feb 15 13:29:04 2015 +0200| [70bfe9082a21c5d402c23b9f9d08d8a73412bd60] | committer: hpi1

Change BD_TEXTST_DATA string array to size to 1

This is to fix warning "nonstandard extension used : zero-sized array in struct/union"

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=70bfe9082a21c5d402c23b9f9d08d8a73412bd60
---

 src/libbluray/decoders/textst.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/decoders/textst.h b/src/libbluray/decoders/textst.h
index b5758a8..e22cb78 100644
--- a/src/libbluray/decoders/textst.h
+++ b/src/libbluray/decoders/textst.h
@@ -110,7 +110,7 @@ typedef struct {
         } style;
         struct {
             uint8_t length;
-            uint8_t string[0];
+            uint8_t string[1];
         } text;
     } data;
 } BD_TEXTST_DATA;



More information about the libbluray-devel mailing list