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
3e56ae67
Commit
3e56ae67
authored
Sep 10, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264: Use FF_ALLOCZ_ARRAY_OR_GOTO()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7258b5eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
h264.c
libavcodec/h264.c
+10
-10
No files found.
libavcodec/h264.c
View file @
3e56ae67
...
...
@@ -431,8 +431,8 @@ int ff_h264_alloc_tables(H264Context *h)
const
int
row_mb_num
=
2
*
h
->
mb_stride
*
FFMAX
(
h
->
avctx
->
thread_count
,
1
);
int
x
,
y
,
i
;
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
intra4x4_pred_mode
,
row_mb_num
*
8
*
sizeof
(
uint8_t
),
fail
)
FF_ALLOCZ_
ARRAY_
OR_GOTO
(
h
->
avctx
,
h
->
intra4x4_pred_mode
,
row_mb_num
,
8
*
sizeof
(
uint8_t
),
fail
)
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
non_zero_count
,
big_mb_num
*
48
*
sizeof
(
uint8_t
),
fail
)
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
slice_table_base
,
...
...
@@ -441,10 +441,10 @@ int ff_h264_alloc_tables(H264Context *h)
big_mb_num
*
sizeof
(
uint16_t
),
fail
)
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
chroma_pred_mode_table
,
big_mb_num
*
sizeof
(
uint8_t
),
fail
)
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
mvd_table
[
0
],
16
*
row_mb_num
*
sizeof
(
uint8_t
),
fail
);
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
mvd_table
[
1
],
16
*
row_mb_num
*
sizeof
(
uint8_t
),
fail
);
FF_ALLOCZ_
ARRAY_
OR_GOTO
(
h
->
avctx
,
h
->
mvd_table
[
0
],
row_mb_num
,
16
*
sizeof
(
uint8_t
),
fail
);
FF_ALLOCZ_
ARRAY_
OR_GOTO
(
h
->
avctx
,
h
->
mvd_table
[
1
],
row_mb_num
,
16
*
sizeof
(
uint8_t
),
fail
);
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
direct_table
,
4
*
big_mb_num
*
sizeof
(
uint8_t
),
fail
);
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
list_counts
,
...
...
@@ -499,10 +499,10 @@ int ff_h264_context_init(H264Context *h)
int
yc_size
=
y_size
+
2
*
c_size
;
int
x
,
y
,
i
;
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
top_borders
[
0
],
h
->
mb_width
*
16
*
3
*
sizeof
(
uint8_t
)
*
2
,
fail
)
FF_ALLOCZ_OR_GOTO
(
h
->
avctx
,
h
->
top_borders
[
1
],
h
->
mb_width
*
16
*
3
*
sizeof
(
uint8_t
)
*
2
,
fail
)
FF_ALLOCZ_
ARRAY_
OR_GOTO
(
h
->
avctx
,
h
->
top_borders
[
0
],
h
->
mb_width
,
16
*
3
*
sizeof
(
uint8_t
)
*
2
,
fail
)
FF_ALLOCZ_
ARRAY_
OR_GOTO
(
h
->
avctx
,
h
->
top_borders
[
1
],
h
->
mb_width
,
16
*
3
*
sizeof
(
uint8_t
)
*
2
,
fail
)
h
->
ref_cache
[
0
][
scan8
[
5
]
+
1
]
=
h
->
ref_cache
[
0
][
scan8
[
7
]
+
1
]
=
...
...
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