Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
78cd9c56
Commit
78cd9c56
authored
Feb 27, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postproc: mark alloc/free context functions as av_cold
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a2203228
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
postprocess.c
libpostproc/postprocess.c
+2
-2
No files found.
libpostproc/postprocess.c
View file @
78cd9c56
...
@@ -914,7 +914,7 @@ static const char * context_to_name(void * ptr) {
...
@@ -914,7 +914,7 @@ static const char * context_to_name(void * ptr) {
static
const
AVClass
av_codec_context_class
=
{
"Postproc"
,
context_to_name
,
NULL
};
static
const
AVClass
av_codec_context_class
=
{
"Postproc"
,
context_to_name
,
NULL
};
pp_context
*
pp_get_context
(
int
width
,
int
height
,
int
cpuCaps
){
av_cold
pp_context
*
pp_get_context
(
int
width
,
int
height
,
int
cpuCaps
){
PPContext
*
c
=
av_mallocz
(
sizeof
(
PPContext
));
PPContext
*
c
=
av_mallocz
(
sizeof
(
PPContext
));
int
stride
=
FFALIGN
(
width
,
16
);
//assumed / will realloc if needed
int
stride
=
FFALIGN
(
width
,
16
);
//assumed / will realloc if needed
int
qpStride
=
(
width
+
15
)
/
16
+
2
;
//assumed / will realloc if needed
int
qpStride
=
(
width
+
15
)
/
16
+
2
;
//assumed / will realloc if needed
...
@@ -947,7 +947,7 @@ pp_context *pp_get_context(int width, int height, int cpuCaps){
...
@@ -947,7 +947,7 @@ pp_context *pp_get_context(int width, int height, int cpuCaps){
return
c
;
return
c
;
}
}
void
pp_free_context
(
void
*
vc
){
av_cold
void
pp_free_context
(
void
*
vc
){
PPContext
*
c
=
(
PPContext
*
)
vc
;
PPContext
*
c
=
(
PPContext
*
)
vc
;
int
i
;
int
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