lavf/dashdec: refactoring error handle logic for open_input