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
529a9893
Commit
529a9893
authored
Oct 26, 2013
by
Vittorio Giovara
Committed by
Anton Khirnov
Oct 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avframe: mark source frame const in _ref and _clone
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
fc06ee6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
frame.c
libavutil/frame.c
+2
-2
frame.h
libavutil/frame.h
+2
-2
No files found.
libavutil/frame.c
View file @
529a9893
...
@@ -171,7 +171,7 @@ int av_frame_get_buffer(AVFrame *frame, int align)
...
@@ -171,7 +171,7 @@ int av_frame_get_buffer(AVFrame *frame, int align)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
int
av_frame_ref
(
AVFrame
*
dst
,
AVFrame
*
src
)
int
av_frame_ref
(
AVFrame
*
dst
,
const
AVFrame
*
src
)
{
{
int
i
,
ret
=
0
;
int
i
,
ret
=
0
;
...
@@ -257,7 +257,7 @@ fail:
...
@@ -257,7 +257,7 @@ fail:
return
ret
;
return
ret
;
}
}
AVFrame
*
av_frame_clone
(
AVFrame
*
src
)
AVFrame
*
av_frame_clone
(
const
AVFrame
*
src
)
{
{
AVFrame
*
ret
=
av_frame_alloc
();
AVFrame
*
ret
=
av_frame_alloc
();
...
...
libavutil/frame.h
View file @
529a9893
...
@@ -384,7 +384,7 @@ void av_frame_free(AVFrame **frame);
...
@@ -384,7 +384,7 @@ void av_frame_free(AVFrame **frame);
*
*
* @return 0 on success, a negative AVERROR on error
* @return 0 on success, a negative AVERROR on error
*/
*/
int
av_frame_ref
(
AVFrame
*
dst
,
AVFrame
*
src
);
int
av_frame_ref
(
AVFrame
*
dst
,
const
AVFrame
*
src
);
/**
/**
* Create a new frame that references the same data as src.
* Create a new frame that references the same data as src.
...
@@ -393,7 +393,7 @@ int av_frame_ref(AVFrame *dst, AVFrame *src);
...
@@ -393,7 +393,7 @@ int av_frame_ref(AVFrame *dst, AVFrame *src);
*
*
* @return newly created AVFrame on success, NULL on error.
* @return newly created AVFrame on success, NULL on error.
*/
*/
AVFrame
*
av_frame_clone
(
AVFrame
*
src
);
AVFrame
*
av_frame_clone
(
const
AVFrame
*
src
);
/**
/**
* Unreference all the buffers referenced by frame and reset the frame fields.
* Unreference all the buffers referenced by frame and reset the frame fields.
...
...
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