Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
adb0e941
Commit
adb0e941
authored
8 years ago
by
Luca Barbato
Browse files
Options
Downloads
Patches
Plain Diff
avpacket: Mark src pointer as constant
parent
0a4b9d0c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/avcodec.h
+2
-2
2 additions, 2 deletions
libavcodec/avcodec.h
libavcodec/avpacket.c
+2
-2
2 additions, 2 deletions
libavcodec/avpacket.c
with
4 additions
and
4 deletions
libavcodec/avcodec.h
+
2
−
2
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.
...
...
This diff is collapsed.
Click to expand it.
libavcodec/avpacket.c
+
2
−
2
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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment