Do not dereference a null pointer in avcodec_decode_video2().

This could happen if oom occured while probing a file.
Reported in ticket #1900.