Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0cbb516c
Commit
0cbb516c
authored
Jan 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use flexible arrays instead of allocating too much
parent
66a5515e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
modules/access/rtp/session.c
modules/access/rtp/session.c
+1
-1
modules/access/sdp.c
modules/access/sdp.c
+1
-1
modules/demux/smf.c
modules/demux/smf.c
+1
-1
No files found.
modules/access/rtp/session.c
View file @
0cbb516c
...
@@ -149,7 +149,7 @@ struct rtp_source_t
...
@@ -149,7 +149,7 @@ struct rtp_source_t
uint16_t
last_seq
;
/* sequence of the next dequeued packet */
uint16_t
last_seq
;
/* sequence of the next dequeued packet */
block_t
*
blocks
;
/* re-ordered blocks queue */
block_t
*
blocks
;
/* re-ordered blocks queue */
void
*
opaque
[
1
];
/* Per-source private payload data */
void
*
opaque
[];
/* Per-source private payload data */
};
};
/**
/**
...
...
modules/access/sdp.c
View file @
0cbb516c
...
@@ -47,7 +47,7 @@ static int Control (access_t *, int, va_list);
...
@@ -47,7 +47,7 @@ static int Control (access_t *, int, va_list);
struct
access_sys_t
struct
access_sys_t
{
{
size_t
length
;
size_t
length
;
char
data
[
1
];
char
data
[];
};
};
static
int
Open
(
vlc_object_t
*
obj
)
static
int
Open
(
vlc_object_t
*
obj
)
...
...
modules/demux/smf.c
View file @
0cbb516c
...
@@ -68,7 +68,7 @@ struct demux_sys_t
...
@@ -68,7 +68,7 @@ struct demux_sys_t
/* by the way, "quarter note" is "noire" in French */
/* by the way, "quarter note" is "noire" in French */
unsigned
trackc
;
/* Number of tracks */
unsigned
trackc
;
/* Number of tracks */
mtrk_t
trackv
[
1
];
/* Track states */
mtrk_t
trackv
[];
/* Track states */
};
};
/*****************************************************************************
/*****************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment