[FFmpeg-cvslog] avpacket: Mark src pointer as constant
Luca Barbato
git at videolan.org
Sat Apr 1 19:25:35 EEST 2017
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Nov 17 19:41:12 2016 +0100| [adb0e941c329a4778ade6dd0a326274472992f54] | committer: Luca Barbato
avpacket: Mark src pointer as constant
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=adb0e941c329a4778ade6dd0a326274472992f54
---
libavcodec/avcodec.h | 4 ++--
libavcodec/avpacket.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 88e6c62..a004e6b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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.
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 76fc4eb..f2b0a29 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -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();
More information about the ffmpeg-cvslog
mailing list