Browse Source

avpacket: Mark src pointer as constant

tags/n3.3
Luca Barbato 8 years ago
parent
commit
adb0e941c3
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      libavcodec/avcodec.h
  2. +2
    -2
      libavcodec/avpacket.c

+ 2
- 2
libavcodec/avcodec.h View File

@@ -3832,7 +3832,7 @@ AVPacket *av_packet_alloc(void);
* @see av_packet_alloc * @see av_packet_alloc
* @see av_packet_ref * @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 * 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. * @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. * Wipe the packet.


+ 2
- 2
libavcodec/avpacket.c View File

@@ -352,7 +352,7 @@ void av_packet_unref(AVPacket *pkt)
pkt->size = 0; pkt->size = 0;
} }


int av_packet_ref(AVPacket *dst, AVPacket *src)
int av_packet_ref(AVPacket *dst, const AVPacket *src)
{ {
int ret; int ret;


@@ -384,7 +384,7 @@ fail:
return ret; return ret;
} }


AVPacket *av_packet_clone(AVPacket *src)
AVPacket *av_packet_clone(const AVPacket *src)
{ {
AVPacket *ret = av_packet_alloc(); AVPacket *ret = av_packet_alloc();




Loading…
Cancel
Save