Resolve some patching issues for previous patch (deadlock).
fix allocation crash if input y4m file is not found