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
0f45e643
Commit
0f45e643
authored
May 25, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264_slice: fix macro ()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
af62b427
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
h264_slice.c
libavcodec/h264_slice.c
+7
-7
No files found.
libavcodec/h264_slice.c
View file @
0f45e643
...
@@ -446,9 +446,9 @@ static void clone_tables(H264Context *dst, H264Context *src, int i)
...
@@ -446,9 +446,9 @@ static void clone_tables(H264Context *dst, H264Context *src, int i)
#define IN_RANGE(a, b, size) (((a) >= (b)) && ((a) < ((b) + (size))))
#define IN_RANGE(a, b, size) (((a) >= (b)) && ((a) < ((b) + (size))))
#undef REBASE_PICTURE
#undef REBASE_PICTURE
#define REBASE_PICTURE(pic, new_ctx, old_ctx) \
#define REBASE_PICTURE(pic, new_ctx, old_ctx) \
((
pic && pic >= old_ctx
->DPB && \
((
(pic) && (pic) >= (old_ctx)
->DPB && \
pic < old_ctx
->DPB + H264_MAX_PICTURE_COUNT) ? \
(pic) < (old_ctx)
->DPB + H264_MAX_PICTURE_COUNT) ? \
&
new_ctx->DPB[pic - old_ctx
->DPB] : NULL)
&
(new_ctx)->DPB[(pic) - (old_ctx)
->DPB] : NULL)
static
void
copy_picture_range
(
H264Picture
**
to
,
H264Picture
**
from
,
int
count
,
static
void
copy_picture_range
(
H264Picture
**
to
,
H264Picture
**
from
,
int
count
,
H264Context
*
new_base
,
H264Context
*
new_base
,
...
@@ -486,8 +486,8 @@ static int copy_parameter_set(void **to, void **from, int count, int size)
...
@@ -486,8 +486,8 @@ static int copy_parameter_set(void **to, void **from, int count, int size)
}
}
#define copy_fields(to, from, start_field, end_field) \
#define copy_fields(to, from, start_field, end_field) \
memcpy(&
to->start_field, &from
->start_field, \
memcpy(&
(to)->start_field, &(from)
->start_field, \
(char *)&
to->end_field - (char *)&to
->start_field)
(char *)&
(to)->end_field - (char *)&(to)
->start_field)
static
int
h264_slice_header_init
(
H264Context
*
h
,
int
reinit
);
static
int
h264_slice_header_init
(
H264Context
*
h
,
int
reinit
);
...
@@ -966,13 +966,13 @@ static void init_scan_tables(H264Context *h)
...
@@ -966,13 +966,13 @@ static void init_scan_tables(H264Context *h)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
for
(
i
=
0
;
i
<
16
;
i
++
)
{
#define TRANSPOSE(x) (
x >> 2) | ((x
<< 2) & 0xF)
#define TRANSPOSE(x) (
(x) >> 2) | (((x)
<< 2) & 0xF)
h
->
zigzag_scan
[
i
]
=
TRANSPOSE
(
zigzag_scan
[
i
]);
h
->
zigzag_scan
[
i
]
=
TRANSPOSE
(
zigzag_scan
[
i
]);
h
->
field_scan
[
i
]
=
TRANSPOSE
(
field_scan
[
i
]);
h
->
field_scan
[
i
]
=
TRANSPOSE
(
field_scan
[
i
]);
#undef TRANSPOSE
#undef TRANSPOSE
}
}
for
(
i
=
0
;
i
<
64
;
i
++
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
{
#define TRANSPOSE(x) (
x >> 3) | ((x
& 7) << 3)
#define TRANSPOSE(x) (
(x) >> 3) | (((x)
& 7) << 3)
h
->
zigzag_scan8x8
[
i
]
=
TRANSPOSE
(
ff_zigzag_direct
[
i
]);
h
->
zigzag_scan8x8
[
i
]
=
TRANSPOSE
(
ff_zigzag_direct
[
i
]);
h
->
zigzag_scan8x8_cavlc
[
i
]
=
TRANSPOSE
(
zigzag_scan8x8_cavlc
[
i
]);
h
->
zigzag_scan8x8_cavlc
[
i
]
=
TRANSPOSE
(
zigzag_scan8x8_cavlc
[
i
]);
h
->
field_scan8x8
[
i
]
=
TRANSPOSE
(
field_scan8x8
[
i
]);
h
->
field_scan8x8
[
i
]
=
TRANSPOSE
(
field_scan8x8
[
i
]);
...
...
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