1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avcodec/decode: constify the source packet parameter in extract_packet_props()

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2021-03-03 19:25:43 -03:00
parent 77ce903f7a
commit f7840917da

View File

@@ -144,7 +144,7 @@ fail2:
#define IS_EMPTY(pkt) (!(pkt)->data) #define IS_EMPTY(pkt) (!(pkt)->data)
static int copy_packet_props(AVPacket *dst, AVPacket *src) static int copy_packet_props(AVPacket *dst, const AVPacket *src)
{ {
int ret = av_packet_copy_props(dst, src); int ret = av_packet_copy_props(dst, src);
if (ret < 0) if (ret < 0)
@@ -156,7 +156,7 @@ static int copy_packet_props(AVPacket *dst, AVPacket *src)
return 0; return 0;
} }
static int extract_packet_props(AVCodecInternal *avci, AVPacket *pkt) static int extract_packet_props(AVCodecInternal *avci, const AVPacket *pkt)
{ {
AVPacket tmp = { 0 }; AVPacket tmp = { 0 };
int ret = 0; int ret = 0;