summaryrefslogtreecommitdiffstats
path: root/libavcodec/avpacket.c
diff options
context:
space:
mode:
authorRoman Fietze <roman.fietze@telemotive.de>2014-04-03 12:45:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-04 18:36:48 +0200
commit5bb3f8825584a319b25b430e4ece2fa5b2b47ff9 (patch)
tree249c8985708121835e335547da6528fb0b207694 /libavcodec/avpacket.c
parent0cc685e3add756a72fdd750802b3f7ceb3e7914f (diff)
downloadffmpeg-streaming-5bb3f8825584a319b25b430e4ece2fa5b2b47ff9.zip
ffmpeg-streaming-5bb3f8825584a319b25b430e4ece2fa5b2b47ff9.tar.gz
avcodec.h, avpacket.c: use const AVPacket pointers in copy functions
Signed-off-by: Roman Fietze <roman.fietze@telemotive.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r--libavcodec/avpacket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index f966bfe..00f741a 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -190,7 +190,7 @@ do { \
} while (0)
/* Makes duplicates of data, side_data, but does not copy any other fields */
-static int copy_packet_data(AVPacket *pkt, AVPacket *src, int dup)
+static int copy_packet_data(AVPacket *pkt, const AVPacket *src, int dup)
{
pkt->data = NULL;
pkt->side_data = NULL;
@@ -220,7 +220,7 @@ failed_alloc:
return AVERROR(ENOMEM);
}
-int av_copy_packet_side_data(AVPacket *pkt, AVPacket *src)
+int av_copy_packet_side_data(AVPacket *pkt, const AVPacket *src)
{
if (src->side_data_elems) {
int i;
@@ -262,7 +262,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
return 0;
}
-int av_copy_packet(AVPacket *dst, AVPacket *src)
+int av_copy_packet(AVPacket *dst, const AVPacket *src)
{
*dst = *src;
return copy_packet_data(dst, src, 0);
@@ -534,7 +534,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;
OpenPOWER on IntegriCloud