doc/examples: remove unneeded NULL checks

dst_file cannot be NULL

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Changelog: add 2.4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>