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

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Sat Mar 21 01:05:07 EET 2020


Carl Eugen Hoyos:
> Am Fr., 20. März 2020 um 23:29 Uhr schrieb Andreas Rheinhardt
> <andreas.rheinhardt at gmail.com>:
> 
>> 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() needs either be modified to
>> work with const or be deprecated altogether (as the other _next-APIs
>> have been).
> 
> Will you work on constifying this functions?
> 
Feel free to do it if you like.

- Andreas

PS: AVCodecParser should probably be made const on the next bump, too;
unfortunately 7e8eba2d forgot to deprecate the AVCodecParser.next field.


More information about the ffmpeg-devel mailing list