On Fri, Feb 24, 2017 at 02:21:06AM +0100, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes two warnings here. > > Please comment, Carl Eugen
> utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > 9fc49d14374b7fbfdbb6828fa8a439e884a563e8 > 0001-lavc-utils-Make-second-parameter-to-apply_param_chan.patch > From 14a80e57463f43bcdc1ef5d87d2e95dc1bf420bc Mon Sep 17 00:00:00 2001 > From: Carl Eugen Hoyos <ceho...@ag.or.at> > Date: Fri, 24 Feb 2017 02:18:23 +0100 > Subject: [PATCH] lavc/utils: Make second parameter to apply_param_change() > const. > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > Fixes a compilation warning: > passing argument 2 of ‘apply_param_change’ discards ‘const’ qualifier from > pointer target type > --- > libavcodec/utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/utils.c b/libavcodec/utils.c > index f4085bf..1156e43 100644 > --- a/libavcodec/utils.c > +++ b/libavcodec/utils.c > @@ -2092,7 +2092,7 @@ static int64_t guess_correct_pts(AVCodecContext *ctx, > return pts; > } > > -static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) > +static int apply_param_change(AVCodecContext *avctx, const AVPacket *avpkt) should be ok thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws. -- Plato
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel