diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-08-13 04:47:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-15 01:26:21 +0200 |
commit | 114775955241c2cb742a701cc9eb6462d090f560 (patch) | |
tree | 429589834f2f408fb55ca747033f12e2947ea507 /libavformat/mxfenc.c | |
parent | e301736862f18a449c317a47d0d60d3484e41667 (diff) |
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>
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 2e54320cf0..8b3d599a6f 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -3148,7 +3148,8 @@ static int mxf_interleave_get_packet(AVFormatContext *s, AVPacket *out, AVPacket } } -static int mxf_compare_timestamps(AVFormatContext *s, AVPacket *next, AVPacket *pkt) +static int mxf_compare_timestamps(AVFormatContext *s, const AVPacket *next, + const AVPacket *pkt) { MXFStreamContext *sc = s->streams[pkt ->stream_index]->priv_data; MXFStreamContext *sc2 = s->streams[next->stream_index]->priv_data; |