Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
It's more readable and less prone to breakage.
Signed-off-by: Anton Khirnov <anton@khirnov.net>