This patch depends on D12115 (FFMpeg plugin cleanup)
This patch removes a bunch of deprecation warnings, provides more clean and readable code. Also replaces numeric literals "0" with nullptr, where it's necessary, to prevent the confusion with the integer type.