probably not very complete (mjpegtools had their own problems) but should give you some idea where I am
patch 0001 still not fixed.. (as in, it reintroduced ff->video_probe and this one still leaks..)
configured with
$ ./configure --without-lv2 --without-vdpau --without-vaapi --without-firewire --without-nv --without-shuttle --without-shuttle_usb --with-single-user --without-libzmpeg --with-clang --with-booby --without-dv --without-dvb --without-video4linux2 --disable-dav1d