2017-11-24 12:42 GMT+01:00 Mark Thompson <s...@jkqxz.net>: > On 24/11/17 11:29, Carl Eugen Hoyos wrote: >> 2017-11-24 1:51 GMT+01:00 Mark Thompson <s...@jkqxz.net>: >> >>> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h >>> index 1ae0344bb2..0972df0bde 100644 >>> --- a/libavcodec/avcodec.h >>> +++ b/libavcodec/avcodec.h >>> @@ -2635,7 +2635,7 @@ typedef struct AVCodecContext { >>> * - encoding: unused. >>> * - decoding: Set by libavcodec >>> */ >>> - struct AVHWAccel *hwaccel; >>> + const struct AVHWAccel *hwaccel; >> >> Please bump minor (and perhaps add a note for api), > > Sure. > > """ > 2017-xx-xx - xxxxxxx - lavc 58.x+1.100 - avcodec.h > Add const to AVCodecContext.hwaccel. > """ > >> iirc this has an impact for some toolchains, no? > > I don't think so? C requires that const-qualified and > unqualified versions of a type have the same representation.
> Adding const could affect C++ name mangling, but we don't > support building directly with C++ ("extern \"C\"" is needed). I thought that this is an issue, but I may misremember. Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel