Commit adb0e941 authored by Luca Barbato's avatar Luca Barbato

avpacket: Mark src pointer as constant

parent 0a4b9d0c
......@@ -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.
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment