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
adb0e941
Commit
adb0e941
authored
Nov 17, 2016
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avpacket: Mark src pointer as constant
parent
0a4b9d0c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
avcodec.h
libavcodec/avcodec.h
+2
-2
avpacket.c
libavcodec/avpacket.c
+2
-2
No files found.
libavcodec/avcodec.h
View file @
adb0e941
...
...
@@ -3832,7 +3832,7 @@ AVPacket *av_packet_alloc(void);
* @see av_packet_alloc
* @see av_packet_ref
*/
AVPacket
*
av_packet_clone
(
AVPacket
*
src
);
AVPacket
*
av_packet_clone
(
const
AVPacket
*
src
);
/**
* Free the packet, if the packet is reference counted, it will be
...
...
@@ -3986,7 +3986,7 @@ void av_packet_free_side_data(AVPacket *pkt);
*
* @return 0 on success, a negative AVERROR on error.
*/
int
av_packet_ref
(
AVPacket
*
dst
,
AVPacket
*
src
);
int
av_packet_ref
(
AVPacket
*
dst
,
const
AVPacket
*
src
);
/**
* Wipe the packet.
...
...
libavcodec/avpacket.c
View file @
adb0e941
...
...
@@ -352,7 +352,7 @@ void av_packet_unref(AVPacket *pkt)
pkt
->
size
=
0
;
}
int
av_packet_ref
(
AVPacket
*
dst
,
AVPacket
*
src
)
int
av_packet_ref
(
AVPacket
*
dst
,
const
AVPacket
*
src
)
{
int
ret
;
...
...
@@ -384,7 +384,7 @@ fail:
return
ret
;
}
AVPacket
*
av_packet_clone
(
AVPacket
*
src
)
AVPacket
*
av_packet_clone
(
const
AVPacket
*
src
)
{
AVPacket
*
ret
=
av_packet_alloc
();
...
...
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