Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
6376362d
Commit
6376362d
authored
Sep 08, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
parent
55354b7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
avlanguage.c
libavformat/avlanguage.c
+2
-1
mxf.c
libavformat/mxf.c
+2
-1
No files found.
libavformat/avlanguage.c
View file @
6376362d
...
...
@@ -20,6 +20,7 @@
#include "avlanguage.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
...
...
@@ -736,7 +737,7 @@ const char *av_convert_lang_to(const char *lang, enum AVLangCodespace target_cod
{
int
i
;
const
LangEntry
*
entry
=
NULL
;
const
int
NB_CODESPACES
=
sizeof
(
lang_table_counts
)
/
sizeof
(
*
lang_table_counts
);
const
int
NB_CODESPACES
=
FF_ARRAY_ELEMS
(
lang_table_counts
);
if
(
target_codespace
>=
NB_CODESPACES
)
return
NULL
;
...
...
libavformat/mxf.c
View file @
6376362d
...
...
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/common.h"
#include "mxf.h"
/**
...
...
@@ -80,7 +81,7 @@ static const struct {
{
PIX_FMT_PAL8
,
{
'P'
,
8
}},
};
static
const
int
num_pixel_layouts
=
sizeof
(
ff_mxf_pixel_layouts
)
/
sizeof
(
*
ff_mxf_pixel_layouts
);
static
const
int
num_pixel_layouts
=
FF_ARRAY_ELEMS
(
ff_mxf_pixel_layouts
);
int
ff_mxf_decode_pixel_layout
(
const
char
pixel_layout
[
16
],
enum
PixelFormat
*
pix_fmt
)
{
...
...
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