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/gxfenc.c | |
parent | e301736862f18a449c317a47d0d60d3484e41667 (diff) | |
download | ffmpeg-114775955241c2cb742a701cc9eb6462d090f560.tar.gz |
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/gxfenc.c')
-rw-r--r-- | libavformat/gxfenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 3507c00b40..ad9ddea887 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -987,10 +987,11 @@ static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt) return 0; } -static int gxf_compare_field_nb(AVFormatContext *s, AVPacket *next, AVPacket *cur) +static int gxf_compare_field_nb(AVFormatContext *s, const AVPacket *next, + const AVPacket *cur) { GXFContext *gxf = s->priv_data; - AVPacket *pkt[2] = { cur, next }; + const AVPacket *pkt[2] = { cur, next }; int i, field_nb[2]; GXFStreamContext *sc[2]; |