[FFmpeg-devel] Rename RSHIFT macro to ROUNDED_RSHIFT
mypopy at gmail.com
mypopy at gmail.com
Wed Jan 23 06:13:16 EET 2019
On Wed, Jan 23, 2019 at 3:31 AM Uoti Urpala <uoti.urpala at pp1.inet.fi> wrote:
>
> On Tue, 2019-01-22 at 15:35 -0300, James Almer wrote:
> > I'm not against renaming it to AV_ROUNDED_RSHIFT or similar, but other
> > than an entry in APIChanges we have no way to let library users that
> > RSHIFT will be removed two or so years from now.
>
> How about:
> static inline void __attribute__ ((deprecated)) RSHIFT_is_deprecated(void) {}
>
> #define RSHIFT(a, b) (RSHIFT_is_deprecated(), AV_ROUNDED_SHIFT(a, b))
>
I like this idear
More information about the ffmpeg-devel
mailing list