Fix a wrong condition in LibAvVideoWriter