lavf/protocols: avoid discarding const in avio_enum_protocols()
authorAnton Khirnov <anton@khirnov.net>
Thu, 25 Nov 2021 14:40:16 +0000 (15:40 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 7 Dec 2021 10:16:14 +0000 (11:16 +0100)
commit6ebaccf327ce0fd88555fdd8b3f3deb019f0dc98
tree467156211c85985fc64ef5d6a189ec642071f73d
parentc0e46ad9a97628b7af78c21c4628f878ca658184
lavf/protocols: avoid discarding const in avio_enum_protocols()

Instead of storing the protocol pointer in the opaque iteration state,
store just the index of the next protocol, similarly to how
ff_urlcontext_child_class_iterate() works.
libavformat/protocols.c