Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Andreas Rheinhardt
Carl Eugen Hoyos: > Am Fr., 20. März 2020 um 23:29 Uhr schrieb Andreas Rheinhardt > : > >> PS: Actually, there are a couple of functions that need const: >> av_find_best_stream() provides a way to get a pointer to a non-const >> AVCodec (it casts the const away internally); and >>

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 23:29 Uhr schrieb Andreas Rheinhardt : > PS: Actually, there are a couple of functions that need const: > av_find_best_stream() provides a way to get a pointer to a non-const > AVCodec (it casts the const away internally); and > av_input/output_audio/video_device_next()

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Andreas Rheinhardt
Derek Buitenhuis: > On 21/08/2019 10:04, Andreas Rheinhardt wrote: >> +#if FF_API_NONCONST_ENUM_PROTOCOLS >> const char *avio_enum_protocols(void **opaque, int output) >> +#else >> +const char *avio_enum_protocols(const void **opaque, int output) >> +#endif > > Do we actually allow breakage like

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 19:33 Uhr schrieb Derek Buitenhuis : > > On 21/08/2019 10:04, Andreas Rheinhardt wrote: > > +#if FF_API_NONCONST_ENUM_PROTOCOLS > > const char *avio_enum_protocols(void **opaque, int output) > > +#else > > +const char *avio_enum_protocols(const void **opaque, int output)

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Derek Buitenhuis
On 21/08/2019 10:04, Andreas Rheinhardt wrote: > +#if FF_API_NONCONST_ENUM_PROTOCOLS > const char *avio_enum_protocols(void **opaque, int output) > +#else > +const char *avio_enum_protocols(const void **opaque, int output) > +#endif Do we actually allow breakage like this (even at major bumps)?

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-19 Thread Fu, Linjie
> From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Wednesday, March 18, 2020 21:29 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make > avio_enum_protocols const correct > > Fu, Linjie: > Yes, updating the

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-18 Thread Andreas Rheinhardt
Fu, Linjie: >> From: ffmpeg-devel On Behalf Of >> Andreas Rheinhardt >> Sent: Friday, November 22, 2019 18:02 >> To: FFmpeg development discussions and patches > de...@ffmpeg.org> >> Subject: Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-18 Thread Fu, Linjie
> From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Friday, November 22, 2019 18:02 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make > avio_enum_protocols const correct &g

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2019-11-22 Thread Steven Liu
> 在 2019年11月22日,18:02,Andreas Rheinhardt 写道: > > Andreas Rheinhardt: >> Andreas Rheinhardt: >>> Using avio_enum_protocols works as follows: One initializes a pointer to >>> void and gives avio_enum_protocols the address of said pointer as >>> argument; the pointer will be updated to point to a

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2019-11-22 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Andreas Rheinhardt: >> Using avio_enum_protocols works as follows: One initializes a pointer to >> void and gives avio_enum_protocols the address of said pointer as >> argument; the pointer will be updated to point to a member of the >> url_protocols array. Now the address of

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2019-09-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Using avio_enum_protocols works as follows: One initializes a pointer to > void and gives avio_enum_protocols the address of said pointer as > argument; the pointer will be updated to point to a member of the > url_protocols array. Now the address of the pointer can be reused

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2019-08-21 Thread Andreas Rheinhardt
Tomas Härdin: > ons 2019-08-21 klockan 11:04 +0200 skrev Andreas Rheinhardt: >> Using avio_enum_protocols works as follows: One initializes a pointer to >> void and gives avio_enum_protocols the address of said pointer as >> argument; the pointer will be updated to point to a member of the >>

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2019-08-21 Thread Tomas Härdin
ons 2019-08-21 klockan 11:04 +0200 skrev Andreas Rheinhardt: > Using avio_enum_protocols works as follows: One initializes a pointer to > void and gives avio_enum_protocols the address of said pointer as > argument; the pointer will be updated to point to a member of the > url_protocols array. Now

[FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2019-08-21 Thread Andreas Rheinhardt
Using avio_enum_protocols works as follows: One initializes a pointer to void and gives avio_enum_protocols the address of said pointer as argument; the pointer will be updated to point to a member of the url_protocols array. Now the address of the pointer can be reused for another call to