>> URLProtocol ff_ffrtmphttp_protocol = { >> .name = "ffrtmphttp", >> .url_open = rtmp_http_open, >> @@ -248,4 +271,5 @@ URLProtocol ff_ffrtmphttp_protocol = { >> .url_close = rtmp_http_close, >> .priv_data_size = sizeof(RTMP_HTTPContext), >> .flags = URL_PROTOCOL_FLAG_NETWORK, >> + .priv_data_class= &ffrtmphttp_class, >> }; > > > When you add a private data class, you need to make sure the first member in > RTMP_HTTPContext (in this case) is a const AVClass* pointer, otherwise bad > things will happen (now or later) - noticed with valgrind.
Indeed, thanks for this fix. -- Best regards, Samuel Pitoiset. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel