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
51822879
Commit
51822879
authored
Jan 27, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_mb: constify block_offset
It is read-only in this code.
parent
3bea6409
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
h264_mb.c
libavcodec/h264_mb.c
+2
-2
h264_mb_template.c
libavcodec/h264_mb_template.c
+2
-2
No files found.
libavcodec/h264_mb.c
View file @
51822879
...
...
@@ -616,7 +616,7 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h,
int
simple
,
int
transform_bypass
,
int
pixel_shift
,
int
*
block_offset
,
const
int
*
block_offset
,
int
linesize
,
uint8_t
*
dest_y
,
int
p
)
{
...
...
@@ -732,7 +732,7 @@ static av_always_inline void hl_decode_mb_idct_luma(H264Context *h, H264SliceCon
int
is_h264
,
int
simple
,
int
transform_bypass
,
int
pixel_shift
,
int
*
block_offset
,
const
int
*
block_offset
,
int
linesize
,
uint8_t
*
dest_y
,
int
p
)
{
...
...
libavcodec/h264_mb_template.c
View file @
51822879
...
...
@@ -49,7 +49,7 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h, H264SliceContext *sl)
uint8_t
*
dest_y
,
*
dest_cb
,
*
dest_cr
;
int
linesize
,
uvlinesize
/*dct_offset*/
;
int
i
,
j
;
int
*
block_offset
=
&
h
->
block_offset
[
0
];
const
int
*
block_offset
=
&
h
->
block_offset
[
0
];
const
int
transform_bypass
=
!
SIMPLE
&&
(
sl
->
qscale
==
0
&&
h
->
sps
.
transform_bypass
);
/* is_h264 should always be true if SVQ3 is disabled. */
const
int
is_h264
=
!
CONFIG_SVQ3_DECODER
||
SIMPLE
||
h
->
avctx
->
codec_id
==
AV_CODEC_ID_H264
;
...
...
@@ -281,7 +281,7 @@ static av_noinline void FUNC(hl_decode_mb_444)(H264Context *h, H264SliceContext
uint8_t
*
dest
[
3
];
int
linesize
;
int
i
,
j
,
p
;
int
*
block_offset
=
&
h
->
block_offset
[
0
];
const
int
*
block_offset
=
&
h
->
block_offset
[
0
];
const
int
transform_bypass
=
!
SIMPLE
&&
(
sl
->
qscale
==
0
&&
h
->
sps
.
transform_bypass
);
const
int
plane_count
=
(
SIMPLE
||
!
CONFIG_GRAY
||
!
(
h
->
flags
&
CODEC_FLAG_GRAY
))
?
3
:
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