mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
avformat/mux: Use const AVPacket * in compare functions
There is no reason for these functions to modify the given packets at all. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
e301736862
commit
1147759552
@@ -917,7 +917,7 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt)
|
||||
#define CHUNK_START 0x1000
|
||||
|
||||
int ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
|
||||
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
|
||||
int (*compare)(AVFormatContext *, const AVPacket *, const AVPacket *))
|
||||
{
|
||||
int ret;
|
||||
AVPacketList **next_point, *this_pktl;
|
||||
@@ -994,8 +994,8 @@ next_non_null:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int interleave_compare_dts(AVFormatContext *s, AVPacket *next,
|
||||
AVPacket *pkt)
|
||||
static int interleave_compare_dts(AVFormatContext *s, const AVPacket *next,
|
||||
const AVPacket *pkt)
|
||||
{
|
||||
AVStream *st = s->streams[pkt->stream_index];
|
||||
AVStream *st2 = s->streams[next->stream_index];
|
||||
|
||||
Reference in New Issue
Block a user